diff options
author | Yash Tibrewal <yashkt@google.com> | 2018-05-04 15:03:08 -0700 |
---|---|---|
committer | Yash Tibrewal <yashkt@google.com> | 2018-05-04 15:03:08 -0700 |
commit | ae3866bf6b58bd4a0f4c5d1f2e88e3dcea799213 (patch) | |
tree | 838df26945d09bc07ad815dbc8d16c8643f5ca3f /tools/codegen/core | |
parent | 6a14efc0236d8ff723c662305b5e7dac7f0cf491 (diff) |
Try removing stats
Diffstat (limited to 'tools/codegen/core')
-rwxr-xr-x | tools/codegen/core/gen_stats_data.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tools/codegen/core/gen_stats_data.py b/tools/codegen/core/gen_stats_data.py index 3ebd00d049..1f443ac1d0 100755 --- a/tools/codegen/core/gen_stats_data.py +++ b/tools/codegen/core/gen_stats_data.py @@ -266,12 +266,11 @@ with open('src/core/lib/debug/stats_data.h', 'w') as H: print >> H, "} grpc_stats_histogram_constants;" for ctr in inst_map['Counter']: - print >> H, ("#define GRPC_STATS_INC_%s() " + - "GRPC_STATS_INC_COUNTER(GRPC_STATS_COUNTER_%s)") % ( - ctr.name.upper(), ctr.name.upper()) + print >> H, ("#define GRPC_STATS_INC_%s() ") % ( + ctr.name.upper()) for histogram in inst_map['Histogram']: - print >> H, "#define GRPC_STATS_INC_%s(value) grpc_stats_inc_%s( (int)(value))" % ( - histogram.name.upper(), histogram.name.lower()) + print >> H, "#define GRPC_STATS_INC_%s(value)" % ( + histogram.name.upper()) print >> H, "void grpc_stats_inc_%s(int x);" % histogram.name.lower() for i, tbl in enumerate(static_tables): |