Lines Matching refs:Watchdog
84 Watchdog::Watchdog(uint32_t polling_interval_ms) in Watchdog() function in perfetto::base::Watchdog
87 Watchdog::~Watchdog() { in ~Watchdog()
98 Watchdog* Watchdog::GetInstance() { in GetInstance()
99 static Watchdog* watchdog = new Watchdog(kDefaultPollingInterval); in GetInstance()
103 Watchdog::Timer Watchdog::CreateFatalTimer(uint32_t ms) { in CreateFatalTimer()
105 return Watchdog::Timer(0); in CreateFatalTimer()
107 return Watchdog::Timer(ms); in CreateFatalTimer()
110 void Watchdog::Start() { in Start()
121 thread_ = std::thread(&Watchdog::ThreadMain, this); in Start()
126 void Watchdog::SetMemoryLimit(uint64_t bytes, uint32_t window_ms) { in SetMemoryLimit()
137 void Watchdog::SetCpuLimit(uint32_t percentage, uint32_t window_ms) { in SetCpuLimit()
149 void Watchdog::ThreadMain() { in ThreadMain()
179 void Watchdog::CheckMemory(uint64_t rss_bytes) { in CheckMemory()
196 void Watchdog::CheckCpu(uint64_t cpu_time) { in CheckCpu()
221 uint32_t Watchdog::WindowTimeForRingBuffer(const WindowedInterval& window) { in WindowTimeForRingBuffer()
225 bool Watchdog::WindowedInterval::Push(uint64_t sample) { in Push()
237 double Watchdog::WindowedInterval::Mean() const { in Mean()
241 void Watchdog::WindowedInterval::Clear() { in Clear()
246 void Watchdog::WindowedInterval::Reset(size_t new_size) { in Reset()
252 Watchdog::Timer::Timer(uint32_t ms) { in Timer()
269 Watchdog::Timer::~Timer() { in ~Timer()
275 Watchdog::Timer::Timer(Timer&& other) noexcept { in Timer()