| vjpai | fe8bc19 | 2015-10-21 09:27:19 -0700 | [diff] [blame] | 1 | // 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 | |
| vjpai | fe8bc19 | 2015-10-21 09:27:19 -0700 | [diff] [blame] | 30 | syntax = "proto3"; |
| 31 | |
| 32 | package grpc.testing; |
| 33 | |
| 34 | message ServerStats { |
| Jan Tattermusch | ed67356 | 2015-11-20 14:58:04 -0800 | [diff] [blame] | 35 | // wall clock time change in seconds since last reset |
| vjpai | fe8bc19 | 2015-10-21 09:27:19 -0700 | [diff] [blame] | 36 | double time_elapsed = 1; |
| 37 | |
| Jan Tattermusch | ed67356 | 2015-11-20 14:58:04 -0800 | [diff] [blame] | 38 | // change in user time (in seconds) used by the server since last reset |
| vjpai | fe8bc19 | 2015-10-21 09:27:19 -0700 | [diff] [blame] | 39 | double time_user = 2; |
| 40 | |
| Jan Tattermusch | ed67356 | 2015-11-20 14:58:04 -0800 | [diff] [blame] | 41 | // change in server time (in seconds) used by the server process and all |
| 42 | // threads since last reset |
| vjpai | fe8bc19 | 2015-10-21 09:27:19 -0700 | [diff] [blame] | 43 | double time_system = 3; |
| 44 | } |
| 45 | |
| Jan Tattermusch | 90dd327 | 2015-11-18 15:31:53 -0800 | [diff] [blame] | 46 | // Histogram params based on grpc/support/histogram.c |
| 47 | message HistogramParams { |
| yang-g | 3ff9727 | 2015-11-20 17:01:57 -0800 | [diff] [blame] | 48 | double resolution = 1; // first bucket is [0, 1 + resolution) |
| Jan Tattermusch | 90dd327 | 2015-11-18 15:31:53 -0800 | [diff] [blame] | 49 | double max_possible = 2; // use enough buckets to allow this value |
| 50 | } |
| 51 | |
| 52 | // Histogram data based on grpc/support/histogram.c |
| vjpai | fe8bc19 | 2015-10-21 09:27:19 -0700 | [diff] [blame] | 53 | message 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 | |
| 62 | message ClientStats { |
| Jan Tattermusch | 18ce9d6 | 2015-11-18 15:41:10 -0800 | [diff] [blame] | 63 | // Latency histogram. Data points are in nanoseconds. |
| vjpai | fe8bc19 | 2015-10-21 09:27:19 -0700 | [diff] [blame] | 64 | HistogramData latencies = 1; |
| Jan Tattermusch | 90dd327 | 2015-11-18 15:31:53 -0800 | [diff] [blame] | 65 | |
| 66 | // See ServerStats for details. |
| vjpai | fe8bc19 | 2015-10-21 09:27:19 -0700 | [diff] [blame] | 67 | double time_elapsed = 2; |
| 68 | double time_user = 3; |
| 69 | double time_system = 4; |
| 70 | } |