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

Unified Diff: runtime/lib/profiler.dart

Issue 266913010: Refactor 'dart:profiler' UserTag API (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
« no previous file with comments | « runtime/lib/profiler.cc ('k') | runtime/vm/bootstrap_natives.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/profiler.dart
diff --git a/runtime/lib/profiler.dart b/runtime/lib/profiler.dart
index 5ed8df5cfcd063240988d5678dff4a7e6e1913a6..c42e9668a5b3a59580f44094dd9faf5ed5d0b706 100644
--- a/runtime/lib/profiler.dart
+++ b/runtime/lib/profiler.dart
@@ -8,6 +8,7 @@ patch class UserTag {
/* patch */ factory UserTag(String label) {
return new _UserTag(label);
}
+ /* patch */ static UserTag get defaultTag => _getDefaultTag();
}
@@ -20,5 +21,4 @@ class _UserTag implements UserTag {
patch UserTag getCurrentTag() => _getCurrentTag();
UserTag _getCurrentTag() native "Profiler_getCurrentTag";
-patch UserTag clearCurrentTag() => _clearCurrentTag();
-UserTag _clearCurrentTag() native "Profiler_clearCurrentTag";
+UserTag _getDefaultTag() native "UserTag_defaultTag";
« no previous file with comments | « runtime/lib/profiler.cc ('k') | runtime/vm/bootstrap_natives.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698