Home
last modified time | relevance | path

Searched refs:cordz_next_sample (Results 1 – 3 of 3) sorted by relevance

/external/angle/third_party/abseil-cpp/absl/strings/internal/
Dcordz_functions.cc50 ABSL_CONST_INIT thread_local int64_t cordz_next_sample = kInitCordzNextSample; variable
61 cordz_next_sample = std::numeric_limits<int64_t>::max(); in cordz_should_profile_slow()
72 cordz_next_sample = kIntervalIfDisabled; in cordz_should_profile_slow()
78 cordz_next_sample = 1; in cordz_should_profile_slow()
82 if (cordz_next_sample <= 0) { in cordz_should_profile_slow()
85 const bool initialized = cordz_next_sample != kInitCordzNextSample; in cordz_should_profile_slow()
86 cordz_next_sample = exponential_biased_generator.GetStride(mean_interval); in cordz_should_profile_slow()
90 --cordz_next_sample; in cordz_should_profile_slow()
95 cordz_next_sample = next_sample; in cordz_set_next_sample_for_testing()
Dcordz_functions.h56 ABSL_CONST_INIT extern thread_local int64_t cordz_next_sample;
64 if (ABSL_PREDICT_TRUE(cordz_next_sample > 1)) { in cordz_should_profile()
65 cordz_next_sample--; in cordz_should_profile()
Dcordz_functions_test.cc52 EXPECT_THAT(cordz_next_sample, Eq(1 << 16)); in TEST()
63 EXPECT_THAT(cordz_next_sample, Le(1)); in TEST()
97 sum_of_intervals += cordz_next_sample; in TEST()