Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(663)

Unified Diff: base/test/trace_to_file.cc

Issue 935333002: Update from https://crrev.com/316786 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/test/trace_event_analyzer_unittest.cc ('k') | base/third_party/dynamic_annotations/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/test/trace_to_file.cc
diff --git a/base/test/trace_to_file.cc b/base/test/trace_to_file.cc
index 948a6a7912ecea68927afeb704fb4ce5ece17a49..4e2a33284898e9d3059f1514a77cbd8bd979326c 100644
--- a/base/test/trace_to_file.cc
+++ b/base/test/trace_to_file.cc
@@ -51,10 +51,10 @@ void TraceToFile::BeginTracing(const FilePath& path,
path_ = path;
WriteFileHeader();
- debug::TraceLog::GetInstance()->SetEnabled(
- debug::CategoryFilter(categories),
- debug::TraceLog::RECORDING_MODE,
- debug::TraceOptions(debug::RECORD_UNTIL_FULL));
+ trace_event::TraceLog::GetInstance()->SetEnabled(
+ trace_event::CategoryFilter(categories),
+ trace_event::TraceLog::RECORDING_MODE,
+ trace_event::TraceOptions(trace_event::RECORD_UNTIL_FULL));
}
void TraceToFile::WriteFileHeader() {
@@ -74,7 +74,7 @@ void TraceToFile::TraceOutputCallback(const std::string& data) {
static void OnTraceDataCollected(
Closure quit_closure,
- debug::TraceResultBuffer* buffer,
+ trace_event::TraceResultBuffer* buffer,
const scoped_refptr<RefCountedString>& json_events_str,
bool has_more_events) {
buffer->AddFragment(json_events_str->data());
@@ -87,14 +87,14 @@ void TraceToFile::EndTracingIfNeeded() {
return;
started_ = false;
- debug::TraceLog::GetInstance()->SetDisabled();
+ trace_event::TraceLog::GetInstance()->SetDisabled();
- debug::TraceResultBuffer buffer;
+ trace_event::TraceResultBuffer buffer;
buffer.SetOutputCallback(
Bind(&TraceToFile::TraceOutputCallback, Unretained(this)));
RunLoop run_loop;
- debug::TraceLog::GetInstance()->Flush(
+ trace_event::TraceLog::GetInstance()->Flush(
Bind(&OnTraceDataCollected, run_loop.QuitClosure(), Unretained(&buffer)));
run_loop.Run();
« no previous file with comments | « base/test/trace_event_analyzer_unittest.cc ('k') | base/third_party/dynamic_annotations/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698