)]}'
{
  "commit": "7f5640f2c45f4fe1ef924f12e059ae7ac7e4a5ba",
  "tree": "2622616ff345dcb2eb904dfac2c5881c9770904d",
  "parents": [
    "80264aff67d041e1a4ca7f4fd123079ff99c975e"
  ],
  "author": {
    "name": "Abseil Team",
    "email": "absl-team@google.com",
    "time": "Thu Nov 12 11:42:27 2026 -0800"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Mon Nov 16 22:53:30 2026 -0800"
  },
  "message": "Weight periodic samples by configured period instead of random stride.\n\n`hashtablez` and `cordz` previously weighted each sampled instance by the realized exponential countdown draw (`GetStride(period)`) rather than the configured sampling period. Because an exponential/geometric countdown is memoryless, every instance has the same `1 / period` inclusion probability regardless of the random gap that preceded it:\n- Weighting by the realized draw doubles per-callsite estimator variance and produces single-sample weights up to ~18x the configured period.\n- On a newly started thread, any stride finishing at the `t`-th item satisfies `stride \u003c\u003d t` (`1 - (1 - 1/period)^t` expected weight instead of `1`), systematically undercounting items created early in a thread\u0027s lifetime.\n\nAdd `absl::profiling_internal::ExponentialSampler` (`ShouldSampleNext` and `SampleSlow`), embedding `ExponentialBiased` and snapshotting the active period when each stride is armed so callers need only a single constant-initializable TLS sampler with unbiased sample weights (including multi-unit steps with overshoot weighting). Switch `hashtablez` and `cordz` to use it.\n\nPiperOrigin-RevId: 1020303527\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "a25788b23cf8ebf19cc7a619473140a48afb38d9",
      "old_mode": 33188,
      "old_path": "absl/container/internal/hashtablez_sampler.cc",
      "new_id": "227ab64707899716ba9d57c3d3422c5449e3f4d2",
      "new_mode": 33188,
      "new_path": "absl/container/internal/hashtablez_sampler.cc"
    },
    {
      "type": "modify",
      "old_id": "4ad5e5f162a29a511414c65d4662cd1900a4e597",
      "old_mode": 33188,
      "old_path": "absl/container/internal/hashtablez_sampler.h",
      "new_id": "9a79430b38da7553dd064f099f89db8307190bc8",
      "new_mode": 33188,
      "new_path": "absl/container/internal/hashtablez_sampler.h"
    },
    {
      "type": "modify",
      "old_id": "b61976d83e1ee46d4e695b7deb5cd6d5fb8f61bd",
      "old_mode": 33188,
      "old_path": "absl/container/internal/hashtablez_sampler_test.cc",
      "new_id": "a28045e2e01e3f04135b6b5a5e6491f0e84e6bbf",
      "new_mode": 33188,
      "new_path": "absl/container/internal/hashtablez_sampler_test.cc"
    },
    {
      "type": "modify",
      "old_id": "8682ca15e7b67898819ce5b2fbe551aff3cb4886",
      "old_mode": 33188,
      "old_path": "absl/profiling/internal/exponential_biased.cc",
      "new_id": "282137514739d0e6e0c31953d12b52c06e3705fc",
      "new_mode": 33188,
      "new_path": "absl/profiling/internal/exponential_biased.cc"
    },
    {
      "type": "modify",
      "old_id": "d31f7782e83dca4461073c443b9b04582a5921df",
      "old_mode": 33188,
      "old_path": "absl/profiling/internal/exponential_biased.h",
      "new_id": "e5b3aa514097e5418fa91fe18810e0dbe6509f04",
      "new_mode": 33188,
      "new_path": "absl/profiling/internal/exponential_biased.h"
    },
    {
      "type": "modify",
      "old_id": "3471b071064612945a65851eb5cc92e5a95eb982",
      "old_mode": 33188,
      "old_path": "absl/profiling/internal/exponential_biased_test.cc",
      "new_id": "5d481aca8c6d3b07ca99fa706a3277c758c6d43a",
      "new_mode": 33188,
      "new_path": "absl/profiling/internal/exponential_biased_test.cc"
    },
    {
      "type": "modify",
      "old_id": "50948170db317133a0e0b87c2342a3300db5ac86",
      "old_mode": 33188,
      "old_path": "absl/strings/internal/cordz_functions.cc",
      "new_id": "5f774d6c2b6f62467abbf97f446d00c410c3e88f",
      "new_mode": 33188,
      "new_path": "absl/strings/internal/cordz_functions.cc"
    },
    {
      "type": "modify",
      "old_id": "84c185e4072f4962a6332d8ad56705b1ead2d58f",
      "old_mode": 33188,
      "old_path": "absl/strings/internal/cordz_functions.h",
      "new_id": "490587f3b9ed79619f2cff0635ef0c84392e64da",
      "new_mode": 33188,
      "new_path": "absl/strings/internal/cordz_functions.h"
    },
    {
      "type": "modify",
      "old_id": "3949bf3ae7a960e8f79ef9d6c1b32d6f06358651",
      "old_mode": 33188,
      "old_path": "absl/strings/internal/cordz_functions_test.cc",
      "new_id": "fd7c547c78420cd491028989edfa9a4483c1c8dd",
      "new_mode": 33188,
      "new_path": "absl/strings/internal/cordz_functions_test.cc"
    }
  ]
}
