Merge pull request #2292 from ctiller/create-pull-request/patch-41fabf4

Automated fix for refs/heads/hpack_hit_rate
pull/37331/head^2
Craig Tiller 4 months ago committed by GitHub
commit 1dbfd5c424
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      test/core/transport/chttp2/hpack_parser_table_test.cc
  2. 5
      tools/codegen/core/gen_stats_data.py

@ -152,7 +152,7 @@ TEST(HpackParserTableTest, ManyUnusedAdditions) {
ExecCtx exec_ctx;
auto stats_before = global_stats().Collect();
const Timestamp start = grpc_core::Timestamp::Now();
const Timestamp start = Timestamp::Now();
for (i = 0; i < 100000; i++) {
std::string key = absl::StrCat("K.", i);
@ -171,7 +171,7 @@ TEST(HpackParserTableTest, ManyUnusedAdditions) {
tbl.reset();
auto stats_after = global_stats().Collect();
const Timestamp end = grpc_core::Timestamp::Now();
const Timestamp end = Timestamp::Now();
EXPECT_EQ(stats_after->http2_hpack_hits, stats_before->http2_hpack_hits);
EXPECT_EQ(stats_after->http2_hpack_misses - stats_before->http2_hpack_misses,

@ -302,7 +302,10 @@ with open("src/core/telemetry/stats_data.h", "w") as H:
print(" public:", file=H)
print(" static int BucketFor(int value);", file=H)
print(" const uint64_t* buckets() const { return buckets_; }", file=H)
print(" size_t bucket_count() const { return %d; }" % shape.buckets, file=H)
print(
" size_t bucket_count() const { return %d; }" % shape.buckets,
file=H,
)
print(
" friend Histogram_%d_%d operator-(const Histogram_%d_%d& left,"
" const Histogram_%d_%d& right);"

Loading…
Cancel
Save