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/tracing/trace_controller_impl.h" | 5 #include "content/browser/tracing/trace_controller_impl.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 // The last ack represents local trace, so we need to ack it now. Note that | 362 // The last ack represents local trace, so we need to ack it now. Note that |
363 // this code only executes if there were child processes. | 363 // this code only executes if there were child processes. |
364 float bpf = TraceLog::GetInstance()->GetBufferPercentFull(); | 364 float bpf = TraceLog::GetInstance()->GetBufferPercentFull(); |
365 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, | 365 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, |
366 base::Bind(&TraceControllerImpl::OnTraceBufferPercentFullReply, | 366 base::Bind(&TraceControllerImpl::OnTraceBufferPercentFullReply, |
367 base::Unretained(this), bpf)); | 367 base::Unretained(this), bpf)); |
368 } | 368 } |
369 } | 369 } |
370 | 370 |
371 } // namespace content | 371 } // namespace content |
OLD | NEW |