Commit 0941e258 authored by Jun Mukai's avatar Jun Mukai Committed by Commit Bot

Print the filename of the trace data for the perf test

It is not clear which file stores the tracing data when --trace-dir
is specified.

Bug: none
Test: manually
Change-Id: I6e80e8f62adfa2091d271eaef1732891b69e33ca
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1769801Reviewed-by: default avatarMitsuru Oshima <oshima@chromium.org>
Reviewed-by: default avatarScott Violet <sky@chromium.org>
Commit-Queue: Jun Mukai <mukai@chromium.org>
Cr-Commit-Position: refs/heads/master@{#690410}
parent 99c3dd29
...@@ -129,6 +129,7 @@ void PerformanceTest::TearDownOnMainThread() { ...@@ -129,6 +129,7 @@ void PerformanceTest::TearDownOnMainThread() {
base::CommandLine::ForCurrentProcess()->GetSwitchValuePath(kTraceDir); base::CommandLine::ForCurrentProcess()->GetSwitchValuePath(kTraceDir);
base::FilePath trace_file; base::FilePath trace_file;
CHECK(base::CreateTemporaryFileInDir(dir, &trace_file)); CHECK(base::CreateTemporaryFileInDir(dir, &trace_file));
LOG(INFO) << "Created the trace file: " << trace_file;
auto trace_data_endpoint = content::TracingController::CreateFileEndpoint( auto trace_data_endpoint = content::TracingController::CreateFileEndpoint(
trace_file, runloop.QuitClosure()); trace_file, runloop.QuitClosure());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment