Home
last modified time | relevance | path

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

/external/cronet/base/sampling_heap_profiler/
Dpoisson_allocation_sampler_unittest.cc133 using ProfilingStateFlag = PoissonAllocationSampler::ProfilingStateFlag; typedef in base::PoissonAllocationSamplerStateTest
242 EXPECT_TRUE(HasAllStateFlags(ProfilingStateFlag::kIsRunning | in AddSamplesObservers()
243 ProfilingStateFlag::kWasStarted)); in AddSamplesObservers()
245 EXPECT_TRUE(HasAllStateFlags(ProfilingStateFlag::kIsRunning | in AddSamplesObservers()
246 ProfilingStateFlag::kWasStarted)); in AddSamplesObservers()
256 EXPECT_TRUE(HasAllStateFlags(ProfilingStateFlag::kIsRunning | in RemoveSamplesObservers()
257 ProfilingStateFlag::kWasStarted)); in RemoveSamplesObservers()
259 EXPECT_TRUE(HasAllStateFlags(ProfilingStateFlag::kIsRunning | in RemoveSamplesObservers()
260 ProfilingStateFlag::kWasStarted)); in RemoveSamplesObservers()
262 EXPECT_TRUE(HasAllStateFlags(ProfilingStateFlag::kWasStarted)); in RemoveSamplesObservers()
[all …]
Dpoisson_allocation_sampler.cc161 SetProfilingStateFlag(ProfilingStateFlag::kHookedSamplesMutedForTesting); in ScopedMuteHookedSamplesForTesting()
174 ResetProfilingStateFlag(ProfilingStateFlag::kHookedSamplesMutedForTesting); in ~ScopedMuteHookedSamplesForTesting()
275 if (UNLIKELY(!(state & ProfilingStateFlag::kIsRunning))) { in DoRecordAllocation()
394 void PoissonAllocationSampler::SetProfilingStateFlag(ProfilingStateFlag flag) { in SetProfilingStateFlag()
396 if (flag == ProfilingStateFlag::kIsRunning) { in SetProfilingStateFlag()
397 flags |= ProfilingStateFlag::kWasStarted; in SetProfilingStateFlag()
406 ProfilingStateFlag flag) { in ResetProfilingStateFlag()
433 SetProfilingStateFlag(ProfilingStateFlag::kIsRunning); in AddSamplesObserver()
436 ProfilingStateFlag::kIsRunning); in AddSamplesObserver()
456 ProfilingStateFlag::kIsRunning); in RemoveSamplesObserver()
[all …]
Dpoisson_allocation_sampler.h133 ProfilingStateFlag::kHookedSamplesMutedForTesting; in AreHookedSamplesMuted()
139 enum ProfilingStateFlag { enum
192 static void SetProfilingStateFlag(ProfilingStateFlag flag);
198 static void ResetProfilingStateFlag(ProfilingStateFlag flag);
259 if (LIKELY(!(state & ProfilingStateFlag::kWasStarted))) { in OnAllocation()
267 if (UNLIKELY((state & ProfilingStateFlag::kHookedSamplesMutedForTesting) && in OnAllocation()
335 if (LIKELY(!(state & ProfilingStateFlag::kWasStarted))) { in OnFree()