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

Unified Diff: services/dart/content_handler_main.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 | « mojo/tools/data/rtt_benchmarks ('k') | services/dart/dart_tracing.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/dart/content_handler_main.cc
diff --git a/services/dart/content_handler_main.cc b/services/dart/content_handler_main.cc
index 84c723aae93561a22038c1c95266e28d1e9d0938..bbc5c83e6dc758973a45841b196d60fd50996c01 100644
--- a/services/dart/content_handler_main.cc
+++ b/services/dart/content_handler_main.cc
@@ -28,6 +28,7 @@
namespace dart {
const char kCompleteTimeline[] = "--complete-timeline";
+const char kDartTimeline[] = "--dart-timeline";
const char kEnableStrictMode[] = "--enable-strict-mode";
const char kDisableObservatory[] = "--disable-observatory";
const char kTraceStartup[] = "--trace-startup";
@@ -139,10 +140,16 @@ class DartContentHandlerApp : public mojo::ApplicationDelegate {
observatory_enabled = false;
}
+ bool enable_dart_timeline = false;
+ if (app->HasArg(kDartTimeline)) {
+ enable_dart_timeline = true;
+ }
+
bool success = mojo::dart::DartController::Initialize(
service_connector_,
default_strict_,
observatory_enabled,
+ enable_dart_timeline,
&timeline_arg,
timeline_arg_count);
« no previous file with comments | « mojo/tools/data/rtt_benchmarks ('k') | services/dart/dart_tracing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698