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

Unified Diff: runtime/bin/vmservice/client/lib/src/service/cache.dart

Issue 201213004: Use VM tag in profile and add stack trace trie (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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: runtime/bin/vmservice/client/lib/src/service/cache.dart
diff --git a/runtime/bin/vmservice/client/lib/src/service/cache.dart b/runtime/bin/vmservice/client/lib/src/service/cache.dart
index 39e001d87a16731116108470b84886d9fbbb6d41..a1d8fe4382fac6755f3383dabae644f7d0e5a2aa 100644
--- a/runtime/bin/vmservice/client/lib/src/service/cache.dart
+++ b/runtime/bin/vmservice/client/lib/src/service/cache.dart
@@ -113,6 +113,13 @@ class CodeCache extends ServiceObjectCache<Code> {
return codeList;
}
+ static const TAG_ROOT_ID = 'code/tag-0';
+
+ /// Returns the Code object for the root tag.
+ Code tagRoot() {
+ return _cache[TAG_ROOT_ID];
+ }
+
void _resetProfileData() {
_cache.forEach((k, Code code) {
code.resetProfileData();
@@ -154,6 +161,7 @@ class FunctionCache extends ServiceObjectCache<ServiceMap> {
r'^functions/collected-.+|'
r'^functions/reused-.+|'
r'^functions/stub-.+|'
+ r'^functions/tag-.+|'
r'^classes/\d+/functions/.+|'
r'^classes/\d+/closures/.+|'
r'^classes/\d+/implicit_closures/.+|'

Powered by Google App Engine
This is Rietveld 408576698