Searched refs:window_ms (Results 1 – 2 of 2) sorted by relevance
108 void Watchdog::SetMemoryLimit(uint64_t bytes, uint32_t window_ms) { in SetMemoryLimit() argument112 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() argument123 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()
67 void SetMemoryLimit(uint64_t bytes, uint32_t window_ms);73 void SetCpuLimit(uint32_t percentage, uint32_t window_ms);