Skip to content

Commit b8f2b2c

Browse files
Abseil Teamcopybara-github
authored andcommitted
In example code, add missing template parameter.
PiperOrigin-RevId: 622164857 Change-Id: I806ebeb4da81403c8a9d57f3529b2bfbc1a07d01
1 parent 61e47a4 commit b8f2b2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

absl/profiling/internal/periodic_sampler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ inline bool PeriodicSamplerBase::Sample() noexcept {
172172
// Typical use case:
173173
//
174174
// struct HashTablezTag {};
175-
// thread_local PeriodicSampler sampler;
175+
// thread_local PeriodicSampler<HashTablezTag, 100> sampler;
176176
//
177177
// void HashTableSamplingLogic(...) {
178178
// if (sampler.Sample()) {

0 commit comments

Comments
 (0)