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

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

Issue 965593002: Improved profiler view and inclusive profile tree (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/symbols.h ('k') | no next file » | 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 {
11 11
12 class Isolate; 12 class Isolate;
13 class JSONObject; 13 class JSONObject;
14 class RuntimeEntry; 14 class RuntimeEntry;
15 15
16 #define VM_TAG_LIST(V) \ 16 #define VM_TAG_LIST(V) \
17 V(Idle) \ 17 V(Idle) \
18 V(VM) /* Catch all */ \ 18 V(VM) /* Catch all */ \
19 V(CompileOptimized) \ 19 V(CompileOptimized) \
20 V(CompileUnoptimized) \ 20 V(CompileUnoptimized) \
21 V(CompileTopLevel) \ 21 V(CompileTopLevel) \
22 V(CompileScanner) \ 22 V(CompileScanner) \
23 V(Dart) \ 23 V(Dart) \
24 V(GCNewSpace) \ 24 V(GCNewSpace) \
25 V(GCOldSpace) \ 25 V(GCOldSpace) \
26 V(Embedder) \
26 V(Runtime) \ 27 V(Runtime) \
27 V(Native) \ 28 V(Native) \
28 29
29 class VMTag : public AllStatic { 30 class VMTag : public AllStatic {
30 public: 31 public:
31 enum VMTagId { 32 enum VMTagId {
32 kInvalidTagId = 0, 33 kInvalidTagId = 0,
33 #define DEFINE_VM_TAG_ID(tag) \ 34 #define DEFINE_VM_TAG_ID(tag) \
34 k##tag##TagId, 35 k##tag##TagId,
35 VM_TAG_LIST(DEFINE_VM_TAG_ID) 36 VM_TAG_LIST(DEFINE_VM_TAG_ID)
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 static bool IsUserTag(uword tag_id) { 95 static bool IsUserTag(uword tag_id) {
95 return (tag_id >= kUserTagIdOffset) && 96 return (tag_id >= kUserTagIdOffset) &&
96 (tag_id < kUserTagIdOffset + kMaxUserTags); 97 (tag_id < kUserTagIdOffset + kMaxUserTags);
97 } 98 }
98 }; 99 };
99 100
100 101
101 } // namespace dart 102 } // namespace dart
102 103
103 #endif // VM_TAGS_H_ 104 #endif // VM_TAGS_H_
OLDNEW
« no previous file with comments | « runtime/vm/symbols.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698