/
BUILD
77 lines (70 loc) · 2.1 KB
/
BUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
load("//tensorflow:tensorflow.bzl", "tf_cc_binary")
load("//tensorflow/core:platform/default/build_config.bzl", "tf_additional_all_protos", "tf_profiler_all_protos", "tf_proto_library")
package(
default_visibility = ["//visibility:public"],
licenses = ["notice"], # Apache 2.0
)
tf_cc_binary(
name = "profiler",
srcs = ["profiler.cc"],
deps = [
":protos_all_cc",
"//tensorflow/c:c_api",
"//tensorflow/c:checkpoint_reader",
"//tensorflow/core:framework_headers_lib",
"//tensorflow/core:framework_internal",
"//tensorflow/core:lib",
"//tensorflow/core:protos_all_cc",
"//tensorflow/core/profiler:tfprof_options",
"//tensorflow/core/profiler/internal:tfprof_stats",
"//tensorflow/core/profiler/internal:tfprof_utils",
"//tensorflow/core/profiler/internal/advisor:tfprof_advisor",
"@linenoise",
],
)
cc_library(
name = "tfprof_options",
srcs = ["tfprof_options.cc"],
hdrs = ["tfprof_options.h"],
deps = [
"//tensorflow/core:framework_headers_lib",
"//tensorflow/core:lib",
"//tensorflow/core/profiler:protos_all_cc",
],
)
tf_proto_library(
name = "profiler_service_proto",
srcs = ["profiler_service.proto"],
has_services = 1,
cc_api_version = 2,
cc_grpc_version = 1,
protodeps = tf_profiler_all_protos() + tf_additional_all_protos(),
)
tf_proto_library(
name = "profiler_analysis_proto",
srcs = ["profiler_analysis.proto"],
has_services = 1,
cc_api_version = 2,
cc_grpc_version = 1,
protodeps = [":profiler_service_proto"] + tf_additional_all_protos(),
)
tf_proto_library(
name = "protos_all",
srcs = glob(
["**/*.proto"],
exclude = [
"profiler_service.proto",
"profiler_analysis.proto",
],
),
cc_api_version = 2,
protodeps = tf_additional_all_protos(),
)
filegroup(
name = "mobile_srcs",
srcs = [
"//tensorflow/core/profiler/internal:mobile_srcs",
"//tensorflow/core/profiler/lib:mobile_srcs",
],
visibility = ["//visibility:public"],
)