Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(173)

Side by Side Diff: components/arc/metrics/oom_kills_histogram.h

Issue 2527973003: Consolidate code monitoring low memory kills and OOM kills to MemoryKillsMonitor on ChromeOS. (Closed)
Patch Set: move unittest to chromeos only build rule Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_ARC_METRICS_OOM_KILLS_HISTOGRAM_H_
6 #define COMPONENTS_ARC_METRICS_OOM_KILLS_HISTOGRAM_H_
7
8 #include "base/metrics/histogram.h"
9
10 namespace arc {
11
12 const int kMaxOomMemoryKillTimeDeltaSecs = 30;
13
14 } // namespace arc
15
16 // Use this macro to report elapsed time since last OOM kill event.
17 // Must be a macro as the underlying HISTOGRAM macro creates static variables.
18 #define UMA_HISTOGRAM_OOM_KILL_TIME_INTERVAL(name, sample) \
19 UMA_HISTOGRAM_CUSTOM_TIMES( \
20 name, sample, base::TimeDelta::FromMilliseconds(1), \
21 base::TimeDelta::FromSeconds(::arc::kMaxOomMemoryKillTimeDeltaSecs), 50)
22
23 #endif // COMPONENTS_ARC_METRICS_OOM_KILLS_HISTOGRAM_H_
OLDNEW
« no previous file with comments | « components/arc/metrics/arc_metrics_service.cc ('k') | components/arc/metrics/oom_kills_monitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698