1 // Copyright 2016 gRPC authors.
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
7 // http://www.apache.org/licenses/LICENSE-2.0
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
20 // wall clock time change in seconds since last reset
21 double time_elapsed = 1;
23 // change in user time (in seconds) used by the server since last reset
26 // change in server time (in seconds) used by the server process and all
27 // threads since last reset
28 double time_system = 3;
31 // Histogram params based on grpc/support/histogram.c
32 message HistogramParams {
33 double resolution = 1; // first bucket is [0, 1 + resolution)
34 double max_possible = 2; // use enough buckets to allow this value
37 // Histogram data based on grpc/support/histogram.c
38 message HistogramData {
39 repeated uint32 bucket = 1;
43 double sum_of_squares = 5;
48 // Latency histogram. Data points are in nanoseconds.
49 HistogramData latencies = 1;
51 // See ServerStats for details.
52 double time_elapsed = 2;
54 double time_system = 4;