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

Side by Side Diff: chrome/browser/performance_monitor/process_metrics_history.h

Issue 2694363007: Add memory and CPU histogram for OOPIF
Patch Set: Created 3 years, 10 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_PERFORMANCE_MONITOR_PROCESS_METRICS_HISTORY_H_ 5 #ifndef CHROME_BROWSER_PERFORMANCE_MONITOR_PROCESS_METRICS_HISTORY_H_
6 #define CHROME_BROWSER_PERFORMANCE_MONITOR_PROCESS_METRICS_HISTORY_H_ 6 #define CHROME_BROWSER_PERFORMANCE_MONITOR_PROCESS_METRICS_HISTORY_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 11 matching lines...) Expand all
22 kProcessSubtypeUnknown, 22 kProcessSubtypeUnknown,
23 kProcessSubtypePPAPIFlash, 23 kProcessSubtypePPAPIFlash,
24 kProcessSubtypeExtensionPersistent, 24 kProcessSubtypeExtensionPersistent,
25 kProcessSubtypeExtensionEvent 25 kProcessSubtypeExtensionEvent
26 }; 26 };
27 27
28 struct ProcessMetricsMetadata { 28 struct ProcessMetricsMetadata {
29 base::ProcessHandle handle; 29 base::ProcessHandle handle;
30 int process_type; 30 int process_type;
31 ProcessSubtypes process_subtype; 31 ProcessSubtypes process_subtype;
32 bool contains_oopif = false;
jochen (gone - plz use gerrit) 2017/02/17 15:32:46 same here
32 33
33 ProcessMetricsMetadata() 34 ProcessMetricsMetadata()
34 : handle(base::kNullProcessHandle), 35 : handle(base::kNullProcessHandle),
35 process_type(content::PROCESS_TYPE_UNKNOWN), 36 process_type(content::PROCESS_TYPE_UNKNOWN),
36 process_subtype(kProcessSubtypeUnknown) {} 37 process_subtype(kProcessSubtypeUnknown) {}
37 }; 38 };
38 39
39 class ProcessMetricsHistory { 40 class ProcessMetricsHistory {
40 public: 41 public:
41 ProcessMetricsHistory(); 42 ProcessMetricsHistory();
(...skipping 28 matching lines...) Expand all
70 double cpu_usage_; 71 double cpu_usage_;
71 72
72 content::BackgroundTracingManager::TriggerHandle trace_trigger_handle_; 73 content::BackgroundTracingManager::TriggerHandle trace_trigger_handle_;
73 74
74 DISALLOW_ASSIGN(ProcessMetricsHistory); 75 DISALLOW_ASSIGN(ProcessMetricsHistory);
75 }; 76 };
76 77
77 } // namespace performance_monitor 78 } // namespace performance_monitor
78 79
79 #endif // CHROME_BROWSER_PERFORMANCE_MONITOR_PROCESS_METRICS_HISTORY_H_ 80 #endif // CHROME_BROWSER_PERFORMANCE_MONITOR_PROCESS_METRICS_HISTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698