CMakeLists.txt 1.3 KB
Newer Older
1 2 3
cc_library(
  host_tracer
  SRCS host_tracer.cc
4
  DEPS framework_proto enforce phi var_type_traits)
5 6 7 8
cc_library(
  cuda_tracer
  SRCS cuda_tracer.cc cupti_data_process.cc
  DEPS workqueue_utils enforce glog)
9 10 11 12
cc_library(
  xpu_tracer
  SRCS xpu_tracer.cc
  DEPS enforce glog)
13
add_subdirectory(custom_device)
14 15 16
cc_library(
  event_node
  SRCS event_node.cc
17
  DEPS enforce place)
18 19 20 21
cc_library(
  profiler_utils
  SRCS utils.cc
  DEPS enforce glog)
C
chenjian 已提交
22
add_subdirectory(dump)
23 24 25 26 27 28 29 30 31 32 33 34
cc_library(
  profiler_logger
  SRCS chrometracing_logger.cc dump/serialization_logger.cc
       dump/deserialization_reader.cc
  DEPS nodetreeproto event_node profiler_utils)
cc_library(
  event_bind
  SRCS event_python.cc
  DEPS profiler_logger)
cc_library(
  cpu_utilization
  SRCS cpu_utilization.cc
35
  DEPS phi enforce glog)
36 37 38
cc_library(
  new_profiler
  SRCS profiler.cc
39 40 41 42 43 44
  DEPS host_tracer
       cuda_tracer
       xpu_tracer
       profiler_utils
       cpu_utilization
       event_bind
45
       custom_tracer)
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
cc_test(
  test_event_node
  SRCS test_event_node.cc
  DEPS event_node profiler_logger)
cc_test(
  test_extra_info
  SRCS test_extra_info.cc
  DEPS profiler_utils)
cc_test(
  test_serialization_logger
  SRCS dump/test_serialization_logger.cc
  DEPS event_bind)
cc_test(
  new_profiler_test
  SRCS profiler_test.cc
  DEPS new_profiler)