OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "chrome/browser/performance_monitor/performance_monitor.h" | 5 #include "chrome/browser/performance_monitor/performance_monitor.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/memory/singleton.h" | 9 #include "base/memory/singleton.h" |
8 #include "base/process/process_iterator.h" | 10 #include "base/process/process_iterator.h" |
9 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
10 #include "base/time/time.h" | 12 #include "base/time/time.h" |
11 #include "content/public/browser/browser_child_process_host.h" | 13 #include "content/public/browser/browser_child_process_host.h" |
12 #include "content/public/browser/browser_child_process_host_iterator.h" | 14 #include "content/public/browser/browser_child_process_host_iterator.h" |
13 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
14 #include "content/public/browser/child_process_data.h" | 16 #include "content/public/browser/child_process_data.h" |
15 #include "content/public/browser/render_process_host.h" | 17 #include "content/public/browser/render_process_host.h" |
16 #include "content/public/common/content_constants.h" | 18 #include "content/public/common/content_constants.h" |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 void PerformanceMonitor::RunTriggersUIThread() { | 210 void PerformanceMonitor::RunTriggersUIThread() { |
209 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 211 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
210 for (auto it = metrics_map_.begin(); it != metrics_map_.end(); ++it) { | 212 for (auto it = metrics_map_.begin(); it != metrics_map_.end(); ++it) { |
211 it->second.RunPerformanceTriggers(); | 213 it->second.RunPerformanceTriggers(); |
212 } | 214 } |
213 | 215 |
214 StartGatherCycle(); | 216 StartGatherCycle(); |
215 } | 217 } |
216 | 218 |
217 } // namespace performance_monitor | 219 } // namespace performance_monitor |
OLD | NEW |