| OLD | NEW |
| 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 #include "chrome/browser/performance_monitor/process_metrics_history.h" | 5 #include "chrome/browser/performance_monitor/process_metrics_history.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram_macros.h" |
| 11 #include "base/process/process_metrics.h" | 11 #include "base/process/process_metrics.h" |
| 12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
| 13 #include "content/public/common/process_type.h" | 13 #include "content/public/common/process_type.h" |
| 14 | 14 |
| 15 #if defined(OS_MACOSX) | 15 #if defined(OS_MACOSX) |
| 16 #include "content/public/browser/browser_child_process_host.h" | 16 #include "content/public/browser/browser_child_process_host.h" |
| 17 #endif | 17 #endif |
| 18 | 18 |
| 19 namespace performance_monitor { | 19 namespace performance_monitor { |
| 20 | 20 |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 | 165 |
| 166 if (cpu_usage_ > kHighCPUUtilizationThreshold && | 166 if (cpu_usage_ > kHighCPUUtilizationThreshold && |
| 167 trace_trigger_handle_ != -1) { | 167 trace_trigger_handle_ != -1) { |
| 168 content::BackgroundTracingManager::GetInstance()->TriggerNamedEvent( | 168 content::BackgroundTracingManager::GetInstance()->TriggerNamedEvent( |
| 169 trace_trigger_handle_, | 169 trace_trigger_handle_, |
| 170 content::BackgroundTracingManager::StartedFinalizingCallback()); | 170 content::BackgroundTracingManager::StartedFinalizingCallback()); |
| 171 } | 171 } |
| 172 } | 172 } |
| 173 | 173 |
| 174 } // namespace performance_monitor | 174 } // namespace performance_monitor |
| OLD | NEW |