| Index: components/tracing/child_trace_message_filter.cc
|
| diff --git a/components/tracing/child_trace_message_filter.cc b/components/tracing/child_trace_message_filter.cc
|
| index ad34a24c352cd6105797c8914977c79451ab50d1..707e407a00269e1ed9981b234c71349a6856bc17 100644
|
| --- a/components/tracing/child_trace_message_filter.cc
|
| +++ b/components/tracing/child_trace_message_filter.cc
|
| @@ -58,7 +58,8 @@ ChildTraceMessageFilter::~ChildTraceMessageFilter() {}
|
|
|
| void ChildTraceMessageFilter::OnBeginTracing(
|
| const std::string& trace_config_str,
|
| - base::TraceTicks browser_time) {
|
| + base::TraceTicks browser_time,
|
| + int tracing_process_id) {
|
| #if defined(__native_client__)
|
| // NaCl and system times are offset by a bit, so subtract some time from
|
| // the captured timestamps. The value might be off by a bit due to messaging
|
| @@ -66,6 +67,8 @@ void ChildTraceMessageFilter::OnBeginTracing(
|
| base::TimeDelta time_offset = base::TraceTicks::Now() - browser_time;
|
| TraceLog::GetInstance()->SetTimeOffset(time_offset);
|
| #endif
|
| + ChildMemoryDumpManagerDelegateImpl::GetInstance()->set_tracing_process_id(
|
| + tracing_process_id);
|
| TraceLog::GetInstance()->SetEnabled(
|
| base::trace_event::TraceConfig(trace_config_str),
|
| base::trace_event::TraceLog::RECORDING_MODE);
|
| @@ -80,6 +83,9 @@ void ChildTraceMessageFilter::OnEndTracing() {
|
| // OnTraceDataCollected calls will not be deferred.
|
| TraceLog::GetInstance()->Flush(
|
| base::Bind(&ChildTraceMessageFilter::OnTraceDataCollected, this));
|
| +
|
| + ChildMemoryDumpManagerDelegateImpl::GetInstance()->set_tracing_process_id(
|
| + base::trace_event::MemoryDumpManager::kInvalidTracingProcessId);
|
| }
|
|
|
| void ChildTraceMessageFilter::OnEnableMonitoring(
|
|
|