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

Side by Side Diff: runtime/vm/tags.h

Issue 1851293005: Improve CPU Profile View (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « runtime/vm/service.cc ('k') | runtime/vm/tags.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_TAGS_H_ 5 #ifndef VM_TAGS_H_
6 #define VM_TAGS_H_ 6 #define VM_TAGS_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 9
10 namespace dart { 10 namespace dart {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 kInlineStartCodeTagId, 55 kInlineStartCodeTagId,
56 kInlineEndCodeTagId, 56 kInlineEndCodeTagId,
57 kLastTagId, 57 kLastTagId,
58 }; 58 };
59 59
60 static bool IsVMTag(uword id) { 60 static bool IsVMTag(uword id) {
61 return (id != kInvalidTagId) && (id < kNumVMTags); 61 return (id != kInvalidTagId) && (id < kNumVMTags);
62 } 62 }
63 static const char* TagName(uword id); 63 static const char* TagName(uword id);
64 static bool IsNativeEntryTag(uword id); 64 static bool IsNativeEntryTag(uword id);
65 65 static bool IsDartTag(uword id);
66 static bool IsExitFrameTag(uword id);
66 static bool IsRuntimeEntryTag(uword id); 67 static bool IsRuntimeEntryTag(uword id);
67 static const char* RuntimeEntryTagName(uword id); 68 static const char* RuntimeEntryTagName(uword id);
68 69
69 static void RegisterRuntimeEntry(RuntimeEntry* runtime_entry); 70 static void RegisterRuntimeEntry(RuntimeEntry* runtime_entry);
70 71
71 private: 72 private:
72 struct TagEntry { 73 struct TagEntry {
73 const char* name; 74 const char* name;
74 uword id; 75 uword id;
75 }; 76 };
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 static bool IsUserTag(uword tag_id) { 115 static bool IsUserTag(uword tag_id) {
115 return (tag_id >= kUserTagIdOffset) && 116 return (tag_id >= kUserTagIdOffset) &&
116 (tag_id < kUserTagIdOffset + kMaxUserTags); 117 (tag_id < kUserTagIdOffset + kMaxUserTags);
117 } 118 }
118 }; 119 };
119 120
120 121
121 } // namespace dart 122 } // namespace dart
122 123
123 #endif // VM_TAGS_H_ 124 #endif // VM_TAGS_H_
OLDNEW
« no previous file with comments | « runtime/vm/service.cc ('k') | runtime/vm/tags.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698