diff options
author | Abseil Team <absl-team@google.com> | 2024-04-05 06:45:31 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2024-04-05 06:46:26 -0700 |
commit | b8f2b2c6cf362acc30ebb581dfc43d44f73bdf23 (patch) | |
tree | 9cf85293d2bb88228fa5ec9ac36bc76ac9994dde /absl/profiling | |
parent | 61e47a454c81eb07147b0315485f476513cc1230 (diff) | |
download | abseil-b8f2b2c6cf362acc30ebb581dfc43d44f73bdf23.tar.gz abseil-b8f2b2c6cf362acc30ebb581dfc43d44f73bdf23.tar.bz2 abseil-b8f2b2c6cf362acc30ebb581dfc43d44f73bdf23.zip |
In example code, add missing template parameter.
PiperOrigin-RevId: 622164857
Change-Id: I806ebeb4da81403c8a9d57f3529b2bfbc1a07d01
Diffstat (limited to 'absl/profiling')
-rw-r--r-- | absl/profiling/internal/periodic_sampler.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/profiling/internal/periodic_sampler.h b/absl/profiling/internal/periodic_sampler.h index 54f0af45..f5d847ab 100644 --- a/absl/profiling/internal/periodic_sampler.h +++ b/absl/profiling/internal/periodic_sampler.h @@ -172,7 +172,7 @@ inline bool PeriodicSamplerBase::Sample() noexcept { // Typical use case: // // struct HashTablezTag {}; -// thread_local PeriodicSampler sampler; +// thread_local PeriodicSampler<HashTablezTag, 100> sampler; // // void HashTableSamplingLogic(...) { // if (sampler.Sample()) { |