Lines Matching refs:Watchdog
42 #error perfetto::base::Watchdog should not be used in Chromium or embedders
66 Watchdog::Watchdog(uint32_t polling_interval_ms) in Watchdog() function in perfetto::base::Watchdog
69 Watchdog::~Watchdog() { in ~Watchdog()
80 Watchdog* Watchdog::GetInstance() { in GetInstance()
81 static Watchdog* watchdog = new Watchdog(kDefaultPollingInterval); in GetInstance()
85 Watchdog::Timer Watchdog::CreateFatalTimer(uint32_t ms) { in CreateFatalTimer()
87 return Watchdog::Timer(0); in CreateFatalTimer()
89 return Watchdog::Timer(ms); in CreateFatalTimer()
92 void Watchdog::Start() { in Start()
103 thread_ = std::thread(&Watchdog::ThreadMain, this); in Start()
108 void Watchdog::SetMemoryLimit(uint64_t bytes, uint32_t window_ms) { in SetMemoryLimit()
119 void Watchdog::SetCpuLimit(uint32_t percentage, uint32_t window_ms) { in SetCpuLimit()
131 void Watchdog::ThreadMain() { in ThreadMain()
171 void Watchdog::CheckMemory(uint64_t rss_bytes) { in CheckMemory()
188 void Watchdog::CheckCpu(uint64_t cpu_time) { in CheckCpu()
213 uint32_t Watchdog::WindowTimeForRingBuffer(const WindowedInterval& window) { in WindowTimeForRingBuffer()
217 bool Watchdog::WindowedInterval::Push(uint64_t sample) { in Push()
229 double Watchdog::WindowedInterval::Mean() const { in Mean()
233 void Watchdog::WindowedInterval::Clear() { in Clear()
238 void Watchdog::WindowedInterval::Reset(size_t new_size) { in Reset()
244 Watchdog::Timer::Timer(uint32_t ms) { in Timer()
259 Watchdog::Timer::~Timer() { in ~Timer()
265 Watchdog::Timer::Timer(Timer&& other) noexcept { in Timer()