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

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 25 matching lines...) Expand all
36 public: 36 public:
37 enum VMTagId { 37 enum VMTagId {
38 kInvalidTagId = 0, 38 kInvalidTagId = 0,
39 #define DEFINE_VM_TAG_ID(tag) \ 39 #define DEFINE_VM_TAG_ID(tag) \
40 k##tag##TagId, 40 k##tag##TagId,
41 VM_TAG_LIST(DEFINE_VM_TAG_ID) 41 VM_TAG_LIST(DEFINE_VM_TAG_ID)
42 #undef DEFINE_VM_TAG_KIND 42 #undef DEFINE_VM_TAG_KIND
43 kNumVMTags, 43 kNumVMTags,
44 kRootTagId, // Special tag used as root of all profiles. 44 kRootTagId, // Special tag used as root of all profiles.
45 kTruncatedTagId, // Special tag used to indicate a truncated call stack. 45 kTruncatedTagId, // Special tag used to indicate a truncated call stack.
46 // ProfileInfo tags.
47 kNoneCodeTagId,
48 kOptimizedCodeTagId,
49 kUnoptimizedCodeTagId,
50 kNativeCodeTagId,
51 kInlineStartCodeTagId,
52 kInlineEndCodeTagId,
46 kLastTagId, 53 kLastTagId,
47 }; 54 };
48 55
49 static bool IsVMTag(uword id) { 56 static bool IsVMTag(uword id) {
50 return (id != kInvalidTagId) && (id < kNumVMTags); 57 return (id != kInvalidTagId) && (id < kNumVMTags);
51 } 58 }
52 static const char* TagName(uword id); 59 static const char* TagName(uword id);
53 static bool IsNativeEntryTag(uword id); 60 static bool IsNativeEntryTag(uword id);
54 61
55 static bool IsRuntimeEntryTag(uword id); 62 static bool IsRuntimeEntryTag(uword id);
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 static bool IsUserTag(uword tag_id) { 110 static bool IsUserTag(uword tag_id) {
104 return (tag_id >= kUserTagIdOffset) && 111 return (tag_id >= kUserTagIdOffset) &&
105 (tag_id < kUserTagIdOffset + kMaxUserTags); 112 (tag_id < kUserTagIdOffset + kMaxUserTags);
106 } 113 }
107 }; 114 };
108 115
109 116
110 } // namespace dart 117 } // namespace dart
111 118
112 #endif // VM_TAGS_H_ 119 #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