Home
last modified time | relevance | path

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

/external/perfetto/src/base/
Dwatchdog_posix.cc126 void Watchdog::SetMemoryLimit(uint64_t bytes, uint32_t window_ms) { in SetMemoryLimit() argument
130 PERFETTO_CHECK(IsMultipleOf(window_ms, polling_interval_ms_) || bytes == 0); in SetMemoryLimit()
132 size_t size = bytes == 0 ? 0 : window_ms / polling_interval_ms_ + 1; in SetMemoryLimit()
137 void Watchdog::SetCpuLimit(uint32_t percentage, uint32_t window_ms) { in SetCpuLimit() argument
141 PERFETTO_CHECK(IsMultipleOf(window_ms, polling_interval_ms_) || in SetCpuLimit()
144 size_t size = percentage == 0 ? 0 : window_ms / polling_interval_ms_ + 1; in SetCpuLimit()
/external/perfetto/include/perfetto/ext/base/
Dwatchdog_posix.h76 void SetMemoryLimit(uint64_t bytes, uint32_t window_ms);
82 void SetCpuLimit(uint32_t percentage, uint32_t window_ms);