| 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 "content/browser/profiler_message_filter.h" | 5 #include "content/browser/profiler_message_filter.h" |
| 6 | 6 |
| 7 #include "base/tracked_objects.h" | 7 #include "base/tracked_objects.h" |
| 8 #include "base/process_util.h" | |
| 9 #include "content/browser/profiler_controller_impl.h" | 8 #include "content/browser/profiler_controller_impl.h" |
| 10 #include "content/browser/tcmalloc_internals_request_job.h" | 9 #include "content/browser/tcmalloc_internals_request_job.h" |
| 11 #include "content/common/child_process_messages.h" | 10 #include "content/common/child_process_messages.h" |
| 12 | 11 |
| 13 namespace content { | 12 namespace content { |
| 14 | 13 |
| 15 ProfilerMessageFilter::ProfilerMessageFilter(int process_type) | 14 ProfilerMessageFilter::ProfilerMessageFilter(int process_type) |
| 16 : process_type_(process_type) { | 15 : process_type_(process_type) { |
| 17 } | 16 } |
| 18 | 17 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 48 } | 47 } |
| 49 | 48 |
| 50 #if defined(USE_TCMALLOC) | 49 #if defined(USE_TCMALLOC) |
| 51 void ProfilerMessageFilter::OnTcmallocStats(const std::string& output) { | 50 void ProfilerMessageFilter::OnTcmallocStats(const std::string& output) { |
| 52 AboutTcmallocOutputs::GetInstance()->OnStatsForChildProcess( | 51 AboutTcmallocOutputs::GetInstance()->OnStatsForChildProcess( |
| 53 peer_pid(), process_type_, output); | 52 peer_pid(), process_type_, output); |
| 54 } | 53 } |
| 55 #endif | 54 #endif |
| 56 | 55 |
| 57 } | 56 } |
| OLD | NEW |