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

Unified Diff: pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/profile.dart

Issue 2874813002: Support configuring DDC runtime settings before the application starts and normalize API for config… (Closed)
Patch Set: Support configuring DDC runtime settings before the application starts and normalize API for config… Created 3 years, 7 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
Index: pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/profile.dart
diff --git a/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/profile.dart b/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/profile.dart
index 27e445eeb51f8f658e5778d3737a25f64572ba4d..082410011cab21b1bb37359bb845edbc5cebb033 100644
--- a/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/profile.dart
+++ b/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/profile.dart
@@ -114,7 +114,11 @@ clearDynamicStats() {
_callMethodRecords.clear();
}
-bool trackProfile = JS('bool', 'dart.global.trackDdcProfile');
+bool _trackProfile = false;
+
+void trackProfile(bool flag) {
+ _trackProfile = flag;
+}
_trackCall(obj) {
if (JS('bool', '!#', trackProfile)) return;
« no previous file with comments | « pkg/dev_compiler/lib/sdk/ddc_sdk.sum ('k') | pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/runtime.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698