You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

56 lines
1.6 KiB

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