Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions tsl/profiler/protobuf/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Placeholder: load py_proto_library
load("@xla//xla/tsl:tsl.bzl", "internal_visibility")
load("@xla//xla/tsl/platform:build_config.bzl", "tf_proto_library")
load("//tools/build_defs/js/jspb_proto_library:rules.bzl", "jspb_proto_library")

# copybara:uncomment package(default_applicable_licenses = ["//tensorflow:license"])

Expand Down Expand Up @@ -37,6 +38,12 @@ tf_proto_library(
visibility = ["//visibility:public"],
)

jspb_proto_library(
name = "profiler_options_jspb_proto",
visibility = ["//visibility:public"],
deps = [":profiler_options_proto"],
)

tf_proto_library(
name = "profiler_service_monitor_result_proto",
srcs = ["profiler_service_monitor_result.proto"],
Expand Down
7 changes: 7 additions & 0 deletions tsl/profiler/protobuf/profiler_options.proto
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,13 @@ message ProfileOptions {
}
}

enum TraceMode {
TRACE_ONLY_HOST = 0;
TRACE_ONLY_XLA = 1;
TRACE_COMPUTE = 2;
TRACE_COMPUTE_AND_SYNC = 3;
}

// Advanced configuration for the profiler contains a map of config name to
// config value. It gives the flexibility to pass any configuration to the
// profiler. eg:
Expand Down
Loading