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

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

Issue 1828533002: Enable UMA histogram logger for low memor kill events in ArcMetricsService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix NaClBrowserTest Created 4 years, 9 months 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_LOW_MEMORY_KILLER_MONITOR_H_ 5 #ifndef COMPONENTS_ARC_METRICS_ARC_LOW_MEMORY_KILLER_MONITOR_H_
6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_LOW_MEMORY_KILLER_MONITOR_H_ 6 #define COMPONENTS_ARC_METRICS_ARC_LOW_MEMORY_KILLER_MONITOR_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/threading/sequenced_worker_pool.h" 10 #include "base/threading/sequenced_worker_pool.h"
11 11
12 namespace arc { 12 namespace arc {
13 13
14 // Trace lowmemorykiller events and report to UMA. 14 // Trace lowmemorykiller events and report to UMA.
15 // 15 //
16 // If kernel lowmemorykiller is enabled, it would kill processes automatically 16 // If kernel lowmemorykiller is enabled, it would kill processes automatically
(...skipping 17 matching lines...) Expand all
34 // shutdown process while this thread returns from a blocking read. 34 // shutdown process while this thread returns from a blocking read.
35 static void Run(scoped_refptr<base::SequencedWorkerPool> worker_pool); 35 static void Run(scoped_refptr<base::SequencedWorkerPool> worker_pool);
36 36
37 scoped_refptr<base::SequencedWorkerPool> worker_pool_; 37 scoped_refptr<base::SequencedWorkerPool> worker_pool_;
38 38
39 DISALLOW_COPY_AND_ASSIGN(ArcLowMemoryKillerMonitor); 39 DISALLOW_COPY_AND_ASSIGN(ArcLowMemoryKillerMonitor);
40 }; 40 };
41 41
42 } // namespace arc 42 } // namespace arc
43 43
44 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_LOW_MEMORY_KILLER_MONITOR_H_" 44 #endif // COMPONENTS_ARC_METRICS_ARC_LOW_MEMORY_KILLER_MONITOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698