aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/nanobench.cpp
diff options
context:
space:
mode:
authorGravatar Brian Osman <brianosman@google.com>2017-09-08 16:05:23 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-09-08 20:30:48 +0000
commit5ad87aad68d43089bad5cf38951b6c76ae4d904b (patch)
treed86dd009e4d4d71da46077cc98efd4c8c54de16f /bench/nanobench.cpp
parent2e4e73f7328e5c0fc6c31a073f05d43ba8851be2 (diff)
Copy benchmark names, which may be transient strings
Bug: skia: Change-Id: Ic4073aa17a04e8b400cc4a9db9a0669ee4a5c894 Reviewed-on: https://skia-review.googlesource.com/44203 Commit-Queue: Brian Osman <brianosman@google.com> Commit-Queue: Mike Klein <mtklein@google.com> Reviewed-by: Mike Klein <mtklein@google.com>
Diffstat (limited to 'bench/nanobench.cpp')
-rw-r--r--bench/nanobench.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp
index abe0596668..d784439bb4 100644
--- a/bench/nanobench.cpp
+++ b/bench/nanobench.cpp
@@ -1273,7 +1273,8 @@ int main(int argc, char** argv) {
}
}
- TRACE_EVENT1("skia", bench->getUniqueName(), "config", TRACE_STR_COPY(config));
+ TRACE_EVENT2("skia", "Benchmark", "name", TRACE_STR_COPY(bench->getUniqueName()),
+ "config", TRACE_STR_COPY(config));
target->setup();
bench->perCanvasPreDraw(canvas);