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; |