Searched refs:window_ms (Results 1 – 2 of 2) sorted by relevance
126 void Watchdog::SetMemoryLimit(uint64_t bytes, uint32_t window_ms) { in SetMemoryLimit() argument130 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() argument141 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()
76 void SetMemoryLimit(uint64_t bytes, uint32_t window_ms);82 void SetCpuLimit(uint32_t percentage, uint32_t window_ms);