1// Copyright 2016 gRPC authors.
2//
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
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
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.
14
15syntax = "proto3";
16
17package grpc.testing;
18
19message ServerStats {
20  // wall clock time change in seconds since last reset
21  double time_elapsed = 1;
22
23  // change in user time (in seconds) used by the server since last reset
24  double time_user = 2;
25
26  // change in server time (in seconds) used by the server process and all
27  // threads since last reset
28  double time_system = 3;
29}
30
31// Histogram params based on grpc/support/histogram.c
32message HistogramParams {
33  double resolution = 1;    // first bucket is [0, 1 + resolution)
34  double max_possible = 2;  // use enough buckets to allow this value
35}
36
37// Histogram data based on grpc/support/histogram.c
38message HistogramData {
39  repeated uint32 bucket = 1;
40  double min_seen = 2;
41  double max_seen = 3;
42  double sum = 4;
43  double sum_of_squares = 5;
44  double count = 6;
45}
46
47message ClientStats {
48  // Latency histogram. Data points are in nanoseconds.
49  HistogramData latencies = 1;
50
51  // See ServerStats for details.
52  double time_elapsed = 2;
53  double time_user = 3;
54  double time_system = 4;
55}
56