CMakeLists.txt 1.2 KB
Newer Older
1 2 3
cc_library(
  host_tracer
  SRCS host_tracer.cc
4
  DEPS enforce ddim var_type_traits)
5 6 7 8
cc_library(
  cuda_tracer
  SRCS cuda_tracer.cc cupti_data_process.cc
  DEPS workqueue_utils enforce glog)
F
fwenguang 已提交
9
add_subdirectory(mlu)
10 11 12
cc_library(
  event_node
  SRCS event_node.cc
13
  DEPS enforce place)
14 15 16 17
cc_library(
  profiler_utils
  SRCS utils.cc
  DEPS enforce glog)
C
chenjian 已提交
18
add_subdirectory(dump)
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
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
  DEPS cpu_info os_info enforce glog)
cc_library(
  new_profiler
  SRCS profiler.cc
  DEPS host_tracer cuda_tracer profiler_utils cpu_utilization event_bind
       mlu_tracer)
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)