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

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

Issue 2197753002: Move OomKillsMonitor from a single-threaded SequencedWorkerPool to a non-joinable thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a0_b1_nonjoinable_thread
Patch Set: Created 4 years, 4 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 COMPONENTS_ARC_METRICS_ARC_METRICS_SERVICE_H_ 5 #ifndef COMPONENTS_ARC_METRICS_ARC_METRICS_SERVICE_H_
6 #define COMPONENTS_ARC_METRICS_ARC_METRICS_SERVICE_H_ 6 #define COMPONENTS_ARC_METRICS_ARC_METRICS_SERVICE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/threading/thread_checker.h" 10 #include "base/threading/thread_checker.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 ArcMetricsService* arc_metrics_service_; 64 ArcMetricsService* arc_metrics_service_;
65 }; 65 };
66 66
67 mojo::Binding<mojom::MetricsHost> binding_; 67 mojo::Binding<mojom::MetricsHost> binding_;
68 68
69 ProcessObserver process_observer_; 69 ProcessObserver process_observer_;
70 base::ThreadChecker thread_checker_; 70 base::ThreadChecker thread_checker_;
71 base::RepeatingTimer timer_; 71 base::RepeatingTimer timer_;
72 72
73 OomKillsMonitor oom_kills_monitor_; 73 OomKillsMonitorHandle oom_kills_monitor_handle_;
74 74
75 base::TimeTicks arc_start_time_; 75 base::TimeTicks arc_start_time_;
76 76
77 // Always keep this the last member of this class to make sure it's the 77 // Always keep this the last member of this class to make sure it's the
78 // first thing to be destructed. 78 // first thing to be destructed.
79 base::WeakPtrFactory<ArcMetricsService> weak_ptr_factory_; 79 base::WeakPtrFactory<ArcMetricsService> weak_ptr_factory_;
80 80
81 DISALLOW_COPY_AND_ASSIGN(ArcMetricsService); 81 DISALLOW_COPY_AND_ASSIGN(ArcMetricsService);
82 }; 82 };
83 83
84 } // namespace arc 84 } // namespace arc
85 85
86 #endif // COMPONENTS_ARC_METRICS_ARC_METRICS_SERVICE_H_ 86 #endif // COMPONENTS_ARC_METRICS_ARC_METRICS_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | components/arc/metrics/arc_metrics_service.cc » ('j') | components/arc/metrics/arc_metrics_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698