File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 33# Placeholder: load py_proto_library
44load ("@xla//xla/tsl:tsl.bzl" , "internal_visibility" )
55load ("@xla//xla/tsl/platform:build_config.bzl" , "tf_proto_library" )
6+ load ("//tools/build_defs/js/jspb_proto_library:rules.bzl" , "jspb_proto_library" )
67
78# copybara:uncomment package(default_applicable_licenses = ["//tensorflow:license"])
89
@@ -37,6 +38,12 @@ tf_proto_library(
3738 visibility = ["//visibility:public" ],
3839)
3940
41+ jspb_proto_library (
42+ name = "profiler_options_jspb_proto" ,
43+ visibility = ["//visibility:public" ],
44+ deps = [":profiler_options_proto" ],
45+ )
46+
4047tf_proto_library (
4148 name = "profiler_service_monitor_result_proto" ,
4249 srcs = ["profiler_service_monitor_result.proto" ],
Original file line number Diff line number Diff line change @@ -84,6 +84,13 @@ message ProfileOptions {
8484 }
8585 }
8686
87+ enum TraceMode {
88+ TRACE_ONLY_HOST = 0 ;
89+ TRACE_ONLY_XLA = 1 ;
90+ TRACE_COMPUTE = 2 ;
91+ TRACE_COMPUTE_AND_SYNC = 3 ;
92+ }
93+
8794 // Advanced configuration for the profiler contains a map of config name to
8895 // config value. It gives the flexibility to pass any configuration to the
8996 // profiler. eg:
You can’t perform that action at this time.
0 commit comments