aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-07-27 17:39:53 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-07-27 17:42:51 -0700
commit444fae503e93152caf9286686c5ca4cfcaf27b54 (patch)
tree1f65ce4c5b151a5bd502d2adf84aa0ee17c7a5bc
parent0cda579958a24c1947a086b4c9b3a1c374c3d1c6 (diff)
Introduce protobuf fields to support monitoring feature on cloud.
PiperOrigin-RevId: 206399834
-rw-r--r--tensorflow/contrib/tpu/profiler/tpu_profiler.proto26
1 files changed, 26 insertions, 0 deletions
diff --git a/tensorflow/contrib/tpu/profiler/tpu_profiler.proto b/tensorflow/contrib/tpu/profiler/tpu_profiler.proto
index f0fca63db0..da4a95e045 100644
--- a/tensorflow/contrib/tpu/profiler/tpu_profiler.proto
+++ b/tensorflow/contrib/tpu/profiler/tpu_profiler.proto
@@ -11,6 +11,9 @@ service TPUProfiler {
// Starts a profiling session, blocks until it completes, and returns data.
rpc Profile(ProfileRequest) returns (ProfileResponse) {
}
+ // Collects profiling data and returns user-friendly metrics.
+ rpc Monitor(MonitorRequest) returns (MonitorResponse) {
+ }
}
message ProfileOptions {
@@ -104,3 +107,26 @@ message ProfileResponse {
// next-field: 8
}
+
+message MonitorRequest {
+ // Duration for which to profile between each update.
+ uint64 duration_ms = 1;
+
+ // Indicates the level at which we want to monitor. Currently, two levels are
+ // supported:
+ // Level 1: An ultra lightweight mode that captures only some utilization
+ // metrics.
+ // Level 2: More verbose than level 1. Collects utilization metrics, device
+ // information, step time information, etc. Do not use this option if the TPU
+ // host is being very heavily used.
+ int32 monitoring_level = 2;
+
+ // next-field: 3
+}
+
+message MonitorResponse {
+ // Properly formatted string data that can be directly returned back to user.
+ string data = 1;
+
+ // next-field: 2
+}