aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/codegen
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-09-12 15:27:45 -0700
committerGravatar Craig Tiller <ctiller@google.com>2017-09-12 15:27:45 -0700
commitbdfa308a1f6fb12048c9966ee3ee8698c8fd8615 (patch)
treee861d6a7361a27b39078d3bd77844b673b08b181 /tools/codegen
parent3f0ef3ee1e1627c9fde2971a85071e5588d738ad (diff)
parent6d4c993289875b04b35c32bcf854cf2013305ecc (diff)
Merge github.com:grpc/grpc into stats_json
Diffstat (limited to 'tools/codegen')
-rwxr-xr-xtools/codegen/core/gen_stats_data.py7
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)
+