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

Unified Diff: runtime/vm/tags.cc

Issue 1241653002: Factor cpu profile tree into separate element and expose allocation tracing UI (Closed) Base URL: git@github.com:dart-lang/sdk.git@expose_allocation_profile_service
Patch Set: Created 5 years, 5 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/vm/profiler_service.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/tags.cc
diff --git a/runtime/vm/tags.cc b/runtime/vm/tags.cc
index 0b8e75e98c879b04dc3e5a0a5ba5dd5cccd78443..50e5e237d34a6e2ed5f404aae65ef71e24f6b72b 100644
--- a/runtime/vm/tags.cc
+++ b/runtime/vm/tags.cc
@@ -33,17 +33,13 @@ const char* VMTag::TagName(uword tag) {
bool VMTag::IsNativeEntryTag(uword tag) {
- if ((tag == kRootTagId) || (tag == kTruncatedTagId)) {
- return false;
- }
- ASSERT(tag != kInvalidTagId);
- ASSERT(tag != kNumVMTags);
- ASSERT(tag != kLastTagId);
- return (tag > kNumVMTags) && !IsRuntimeEntryTag(tag);
+ return (tag > kLastTagId) && !IsRuntimeEntryTag(tag);
}
+
static RuntimeEntry* runtime_entry_list = NULL;
+
bool VMTag::IsRuntimeEntryTag(uword id) {
const RuntimeEntry* current = runtime_entry_list;
while (current != NULL) {
« no previous file with comments | « runtime/vm/profiler_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698