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

Unified Diff: services/dart/dart_tracing.cc

Issue 1665823003: Only enable the Dart timeline for benchmarks (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 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 | « services/dart/content_handler_main.cc ('k') | services/tracing/tracing_app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/dart/dart_tracing.cc
diff --git a/services/dart/dart_tracing.cc b/services/dart/dart_tracing.cc
index f4f4ec4053fc7704bf2c12a2b6e8a4c6c36aaa06..d3c435331814f924491fa5f00daad820634955c1 100644
--- a/services/dart/dart_tracing.cc
+++ b/services/dart/dart_tracing.cc
@@ -10,8 +10,12 @@
namespace dart {
void DartTimelineController::Enable(const mojo::String& categories) {
- // TODO(johnmccutchan): Respect |categories|.
- EnableAll();
+ if (categories == mojo::String("Dart")) {
+ Dart_GlobalTimelineSetRecordedStreams(DART_TIMELINE_STREAM_DART);
+ } else {
+ // TODO(johnmccutchan): Respect |categories|.
+ EnableAll();
+ }
}
void DartTimelineController::EnableAll() {
« no previous file with comments | « services/dart/content_handler_main.cc ('k') | services/tracing/tracing_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698