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

Unified Diff: components/tracing/test/trace_event_perftest.cc

Issue 2711313005: [NOT FOR REVIEW] Tracing performance assessment for task profiler. (Closed)
Patch Set: TracedValue test Created 3 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 | « components/tracing/experiment/tot.args.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/tracing/test/trace_event_perftest.cc
diff --git a/components/tracing/test/trace_event_perftest.cc b/components/tracing/test/trace_event_perftest.cc
index 721c3aa43f9e781debcd923c4619fc3bf6609913..c1cccc5fc616e195ebb10d405086bbe28c530b9b 100644
--- a/components/tracing/test/trace_event_perftest.cc
+++ b/components/tracing/test/trace_event_perftest.cc
@@ -121,6 +121,16 @@ TEST_F(TraceEventPerfTest, Create_10000_TracedValue) {
}
}
+TEST_F(TraceEventPerfTest, Create_10M_TracedValue) {
+ std::unique_ptr<TracedValue> value;
+ {
+ ScopedStopwatch value_sw("create_traced_values");
+ for (int i = 0; i < 10000000; i++) {
+ value = MakeTracedValue(i);
+ }
+ }
+}
+
TEST_F(TraceEventPerfTest, Submit_10000_TRACE_EVENT_with_TracedValue) {
BeginTrace();
// Time reported by this timer includes TracedValue creation as well.
« no previous file with comments | « components/tracing/experiment/tot.args.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698