1# Description: 2# Profiler C API 3 4load("//tensorflow/core/platform:rules_cc.bzl", "cc_library") 5load("//tensorflow:tensorflow.bzl", "filegroup") 6 7package( 8 licenses = ["notice"], 9) 10 11filegroup( 12 name = "headers", 13 srcs = [ 14 "pluggable_profiler.h", 15 ], 16 visibility = ["//tensorflow:__subpackages__"], 17) 18 19cc_library( 20 name = "pluggable_profiler_hdrs", 21 hdrs = ["pluggable_profiler.h"], 22 visibility = ["//tensorflow:internal"], 23 deps = [ 24 "//tensorflow/c:c_api_macros", 25 "//tensorflow/c:tf_status_headers", 26 ], 27) 28 29cc_library( 30 name = "pluggable_profiler", 31 srcs = ["pluggable_profiler.cc"], 32 hdrs = ["pluggable_profiler.h"], 33 visibility = ["//tensorflow:internal"], 34 deps = [ 35 ":pluggable_profiler_internal", 36 "//tensorflow/c:c_api_macros", 37 "//tensorflow/c:tf_status", 38 "//tensorflow/c:tf_status_helper", 39 "//tensorflow/core:lib", 40 "//tensorflow/core:lib_internal", 41 "//tensorflow/core:protos_all_cc", 42 "//tensorflow/core/common_runtime/device:device_utils", 43 "//tensorflow/core/profiler/lib:profiler_factory", 44 "//tensorflow/core/profiler/lib:profiler_interface", 45 "//tensorflow/core/profiler/protobuf:xplane_proto_cc", 46 ], 47) 48 49cc_library( 50 name = "pluggable_profiler_internal", 51 hdrs = [ 52 "pluggable_profiler.h", 53 "pluggable_profiler_internal.h", 54 ], 55 visibility = [ 56 "//tensorflow/c:__subpackages__", 57 "//tensorflow/core/common_runtime/pluggable_device:__subpackages__", 58 ], 59 deps = [ 60 "//tensorflow/c:c_api_macros", 61 "//tensorflow/c:tf_status", 62 "//tensorflow/c:tf_status_helper", 63 "//tensorflow/core/platform:status", 64 "//tensorflow/core/profiler:profiler_options_proto_cc", 65 "//tensorflow/core/profiler/lib:profiler_interface", 66 "//tensorflow/core/profiler/protobuf:xplane_proto_cc", 67 ], 68) 69