blob: 7e02707dbbee14f75e3586505eebda5dacbb9cb5 [file] [log] [blame]
vjpaife8bc192015-10-21 09:27:19 -07001// Copyright 2015, Google Inc.
2// All rights reserved.
3//
4// Redistribution and use in source and binary forms, with or without
5// modification, are permitted provided that the following conditions are
6// met:
7//
8// * Redistributions of source code must retain the above copyright
9// notice, this list of conditions and the following disclaimer.
10// * Redistributions in binary form must reproduce the above
11// copyright notice, this list of conditions and the following disclaimer
12// in the documentation and/or other materials provided with the
13// distribution.
14// * Neither the name of Google Inc. nor the names of its
15// contributors may be used to endorse or promote products derived from
16// this software without specific prior written permission.
17//
18// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
vjpaife8bc192015-10-21 09:27:19 -070030syntax = "proto3";
31
32package grpc.testing;
33
34message ServerStats {
Jan Tattermusched673562015-11-20 14:58:04 -080035 // wall clock time change in seconds since last reset
vjpaife8bc192015-10-21 09:27:19 -070036 double time_elapsed = 1;
37
Jan Tattermusched673562015-11-20 14:58:04 -080038 // change in user time (in seconds) used by the server since last reset
vjpaife8bc192015-10-21 09:27:19 -070039 double time_user = 2;
40
Jan Tattermusched673562015-11-20 14:58:04 -080041 // change in server time (in seconds) used by the server process and all
42 // threads since last reset
vjpaife8bc192015-10-21 09:27:19 -070043 double time_system = 3;
44}
45
Jan Tattermusch90dd3272015-11-18 15:31:53 -080046// Histogram params based on grpc/support/histogram.c
47message HistogramParams {
yang-g3ff97272015-11-20 17:01:57 -080048 double resolution = 1; // first bucket is [0, 1 + resolution)
Jan Tattermusch90dd3272015-11-18 15:31:53 -080049 double max_possible = 2; // use enough buckets to allow this value
50}
51
52// Histogram data based on grpc/support/histogram.c
vjpaife8bc192015-10-21 09:27:19 -070053message HistogramData {
54 repeated uint32 bucket = 1;
55 double min_seen = 2;
56 double max_seen = 3;
57 double sum = 4;
58 double sum_of_squares = 5;
59 double count = 6;
60}
61
62message ClientStats {
Jan Tattermusch18ce9d62015-11-18 15:41:10 -080063 // Latency histogram. Data points are in nanoseconds.
vjpaife8bc192015-10-21 09:27:19 -070064 HistogramData latencies = 1;
Jan Tattermusch90dd3272015-11-18 15:31:53 -080065
66 // See ServerStats for details.
vjpaife8bc192015-10-21 09:27:19 -070067 double time_elapsed = 2;
68 double time_user = 3;
69 double time_system = 4;
70}