Home
last modified time | relevance | path

Searched refs:window_ms (Results 1 – 2 of 2) sorted by relevance

/external/perfetto/src/base/
Dwatchdog_posix.cc108 void Watchdog::SetMemoryLimit(uint64_t bytes, uint32_t window_ms) { in SetMemoryLimit() argument
112 PERFETTO_CHECK(IsMultipleOf(window_ms, polling_interval_ms_) || bytes == 0); in SetMemoryLimit()
114 size_t size = bytes == 0 ? 0 : window_ms / polling_interval_ms_ + 1; in SetMemoryLimit()
119 void Watchdog::SetCpuLimit(uint32_t percentage, uint32_t window_ms) { in SetCpuLimit() argument
123 PERFETTO_CHECK(IsMultipleOf(window_ms, polling_interval_ms_) || in SetCpuLimit()
126 size_t size = percentage == 0 ? 0 : window_ms / polling_interval_ms_ + 1; in SetCpuLimit()
/external/perfetto/include/perfetto/base/
Dwatchdog_posix.h67 void SetMemoryLimit(uint64_t bytes, uint32_t window_ms);
73 void SetCpuLimit(uint32_t percentage, uint32_t window_ms);