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

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

Issue 1268803006: Support profiler code transition tags (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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
« runtime/vm/profiler_service.cc ('K') | « runtime/vm/service.cc ('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 {
(...skipping 22 matching lines...) Expand all
33 public: 33 public:
34 enum VMTagId { 34 enum VMTagId {
35 kInvalidTagId = 0, 35 kInvalidTagId = 0,
36 #define DEFINE_VM_TAG_ID(tag) \ 36 #define DEFINE_VM_TAG_ID(tag) \
37 k##tag##TagId, 37 k##tag##TagId,
38 VM_TAG_LIST(DEFINE_VM_TAG_ID) 38 VM_TAG_LIST(DEFINE_VM_TAG_ID)
39 #undef DEFINE_VM_TAG_KIND 39 #undef DEFINE_VM_TAG_KIND
40 kNumVMTags, 40 kNumVMTags,
41 kRootTagId, // Special tag used as root of all profiles. 41 kRootTagId, // Special tag used as root of all profiles.
42 kTruncatedTagId, // Special tag used to indicate a truncated call stack. 42 kTruncatedTagId, // Special tag used to indicate a truncated call stack.
43 // ProfileInfo tags.
44 kNoneCodeTagId,
45 kOptimizedCodeTagId,
46 kUnoptimizedCodeTagId,
47 kNativeCodeTagId,
48 kInlineStartCodeTagId,
49 kInlineEndCodeTagId,
43 kLastTagId, 50 kLastTagId,
44 }; 51 };
45 52
46 static bool IsVMTag(uword id) { 53 static bool IsVMTag(uword id) {
47 return (id != kInvalidTagId) && (id < kNumVMTags); 54 return (id != kInvalidTagId) && (id < kNumVMTags);
48 } 55 }
49 static const char* TagName(uword id); 56 static const char* TagName(uword id);
50 static bool IsNativeEntryTag(uword id); 57 static bool IsNativeEntryTag(uword id);
51 58
52 static bool IsRuntimeEntryTag(uword id); 59 static bool IsRuntimeEntryTag(uword id);
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 static bool IsUserTag(uword tag_id) { 107 static bool IsUserTag(uword tag_id) {
101 return (tag_id >= kUserTagIdOffset) && 108 return (tag_id >= kUserTagIdOffset) &&
102 (tag_id < kUserTagIdOffset + kMaxUserTags); 109 (tag_id < kUserTagIdOffset + kMaxUserTags);
103 } 110 }
104 }; 111 };
105 112
106 113
107 } // namespace dart 114 } // namespace dart
108 115
109 #endif // VM_TAGS_H_ 116 #endif // VM_TAGS_H_
OLDNEW
« runtime/vm/profiler_service.cc ('K') | « runtime/vm/service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698