diff options
author | Craig Tiller <ctiller@google.com> | 2017-09-12 15:27:45 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-09-12 15:27:45 -0700 |
commit | bdfa308a1f6fb12048c9966ee3ee8698c8fd8615 (patch) | |
tree | e861d6a7361a27b39078d3bd77844b673b08b181 /tools/codegen | |
parent | 3f0ef3ee1e1627c9fde2971a85071e5588d738ad (diff) | |
parent | 6d4c993289875b04b35c32bcf854cf2013305ecc (diff) |
Merge github.com:grpc/grpc into stats_json
Diffstat (limited to 'tools/codegen')
-rwxr-xr-x | tools/codegen/core/gen_stats_data.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/codegen/core/gen_stats_data.py b/tools/codegen/core/gen_stats_data.py index 985c1f51c9..877a5d9d43 100755 --- a/tools/codegen/core/gen_stats_data.py +++ b/tools/codegen/core/gen_stats_data.py @@ -401,3 +401,10 @@ with open('tools/run_tests/performance/massage_qps_stats.py', 'w') as P: for pctl in RECORD_EXPLICIT_PERCENTILES: print >>P, ' stats["core_%s_%dp"] = massage_qps_stats_helpers.percentile(h.buckets, %d, h.boundaries)' % ( histogram.name, pctl, pctl) + +with open('src/core/lib/debug/stats_data_bq_schema.sql', 'w') as S: + columns = [] + for counter in inst_map['Counter']: + columns.append(('%s_per_iteration' % counter.name, 'INTEGER')) + print >>S, ',\n'.join('%s:%s' % x for x in columns) + |