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