1syntax = "proto3";
2
3package tensorflow;
4
5message ProfilerServiceMonitorResult {
6  // Represents the different types of responses from the profiling service.
7  enum ResponseType {
8    // No result is returned from the profiling service.
9    EMPTY_RESULT = 0;
10    // Only device utilization is available.
11    UTIL_ONLY = 1;
12    // Both device utilization and device idle time are available.
13    UTIL_IDLE = 2;
14    // Device utilization, device idle time, step time, and infeed percentage
15    // are all available.
16    UTIL_IDLE_STEP = 3;
17  }
18
19  // Type of profiling responses.
20  ResponseType response_type = 1;
21  // Percentage of time when device is idle.
22  double device_idle_time_percent = 2;
23  // TPU matrix unit utilization percentage.
24  double matrix_unit_utilization_percent = 3;
25  // Average step time in millisecond.
26  double step_time_ms_avg = 4;
27  // Minimum step time in millisecond.
28  double step_time_ms_min = 5;
29  // Maximum step time in millisecond.
30  double step_time_ms_max = 6;
31  // Average infeed percentage.
32  double infeed_percent_avg = 7;
33  // Minimum infeed percentage.
34  double infeed_percent_min = 8;
35  // Maximum infeed percentage.
36  double infeed_percent_max = 9;
37
38  // next-field: 10
39}
40