#include <tags.h>
Definition at line 107 of file tags.h.
◆ AddStreamableTagName()
void dart::UserTags::AddStreamableTagName |
( |
const char * |
tag | ) |
|
|
static |
Definition at line 152 of file tags.cc.
152 {
153 MutexLocker ml(subscribed_tags_lock_);
154
155 for (intptr_t
i = 0;
i < subscribed_tags_.
length(); ++
i) {
156 if (strcmp(tag, subscribed_tags_.
At(
i)) == 0) {
157 return;
158 }
159 }
161}
const T & At(intptr_t index) const
static char * StrDup(const char *s)
◆ Cleanup()
void dart::UserTags::Cleanup |
( |
| ) |
|
|
static |
Definition at line 191 of file tags.cc.
191 {
192 {
193 MutexLocker ml(subscribed_tags_lock_);
194 for (intptr_t
i = 0;
i < subscribed_tags_.
length(); ++
i) {
195 free(
const_cast<char*
>(subscribed_tags_.
At(
i)));
196 }
197 subscribed_tags_.
Clear();
198 }
199 delete subscribed_tags_lock_;
200 subscribed_tags_lock_ = nullptr;
201}
◆ Init()
void dart::UserTags::Init |
( |
| ) |
|
|
static |
Definition at line 187 of file tags.cc.
187 {
188 subscribed_tags_lock_ = new Mutex();
189}
◆ IsTagNameStreamable()
bool dart::UserTags::IsTagNameStreamable |
( |
const char * |
tag | ) |
|
|
static |
Definition at line 177 of file tags.cc.
177 {
178 MutexLocker ml(subscribed_tags_lock_);
179 for (intptr_t
i = 0;
i < subscribed_tags_.
length(); ++
i) {
180 if (strcmp(tag, subscribed_tags_.
At(
i)) == 0) {
181 return true;
182 }
183 }
184 return false;
185}
◆ IsUserTag()
static bool dart::UserTags::IsUserTag |
( |
uword |
tag_id | ) |
|
|
inlinestatic |
◆ RemoveStreamableTagName()
void dart::UserTags::RemoveStreamableTagName |
( |
const char * |
tag | ) |
|
|
static |
Definition at line 163 of file tags.cc.
163 {
164 MutexLocker ml(subscribed_tags_lock_);
165 bool found = false;
166 for (intptr_t
i = 0;
i < subscribed_tags_.
length(); ++
i) {
167 if (strcmp(tag, subscribed_tags_.
At(
i)) == 0) {
168 free(
const_cast<char*
>(subscribed_tags_.
At(
i)));
170 found = true;
171 break;
172 }
173 }
175}
void RemoveAt(intptr_t i)
◆ TagName()
const char * dart::UserTags::TagName |
( |
uword |
tag_id | ) |
|
|
static |
Definition at line 139 of file tags.cc.
139 {
143 Zone* zone = thread->zone();
144 Isolate* isolate = thread->isolate();
145 const UserTag& tag =
149 return label.ToCString();
150}
static Thread * Current()
static UserTagPtr FindTagById(const Isolate *isolate, uword tag_id)
◆ kDefaultUserTag
◆ kMaxUserTags
constexpr intptr_t dart::UserTags::kMaxUserTags = 256 |
|
staticconstexpr |
◆ kUserTagIdOffset
constexpr uword dart::UserTags::kUserTagIdOffset = 0x4096 |
|
staticconstexpr |
The documentation for this class was generated from the following files:
- third_party/dart-lang/sdk/runtime/vm/tags.h
- third_party/dart-lang/sdk/runtime/vm/tags.cc