|
static void | SetStream (TimelineEvent *event, TimelineStream *stream) |
|
static Mutex & | GetRecorderLock (TimelineEventRecorder &recorder) |
|
static void | FakeThreadEvent (TimelineEventBlock *block, intptr_t ftid, const char *label="fake", TimelineStream *stream=nullptr) |
|
static void | FakeDuration (TimelineEventRecorder *recorder, const char *label, int64_t start, int64_t end) |
|
static void | FakeBegin (TimelineEventRecorder *recorder, const char *label, int64_t start) |
|
static void | FakeEnd (TimelineEventRecorder *recorder, const char *label, int64_t end) |
|
static void | FinishBlock (TimelineEventBlock *block) |
|
Definition at line 44 of file timeline_test.cc.
◆ FakeBegin()
static void dart::TimelineTestHelper::FakeBegin |
( |
TimelineEventRecorder * |
recorder, |
|
|
const char * |
label, |
|
|
int64_t |
start |
|
) |
| |
|
inlinestatic |
Definition at line 82 of file timeline_test.cc.
84 {
85 ASSERT(recorder !=
nullptr);
88 TimelineEvent* event = recorder->StartEvent();
90 event->Begin(label, -1, start);
91 recorder->CompleteEvent(
event);
92 }
◆ FakeDuration()
static void dart::TimelineTestHelper::FakeDuration |
( |
TimelineEventRecorder * |
recorder, |
|
|
const char * |
label, |
|
|
int64_t |
start, |
|
|
int64_t |
end |
|
) |
| |
|
inlinestatic |
Definition at line 69 of file timeline_test.cc.
72 {
73 ASSERT(recorder !=
nullptr);
76 TimelineEvent* event = recorder->StartEvent();
78 event->Duration(label, start, end);
79 recorder->CompleteEvent(
event);
80 }
◆ FakeEnd()
static void dart::TimelineTestHelper::FakeEnd |
( |
TimelineEventRecorder * |
recorder, |
|
|
const char * |
label, |
|
|
int64_t |
end |
|
) |
| |
|
inlinestatic |
Definition at line 94 of file timeline_test.cc.
96 {
97 ASSERT(recorder !=
nullptr);
100 TimelineEvent* event = recorder->StartEvent();
102 event->End(label, end);
103 recorder->CompleteEvent(
event);
104 }
◆ FakeThreadEvent()
static void dart::TimelineTestHelper::FakeThreadEvent |
( |
TimelineEventBlock * |
block, |
|
|
intptr_t |
ftid, |
|
|
const char * |
label = "fake" , |
|
|
TimelineStream * |
stream = nullptr |
|
) |
| |
|
inlinestatic |
Definition at line 54 of file timeline_test.cc.
57 {
59 MutexLocker ml(current_thread.timeline_block_lock());
60 TimelineEvent* event = block->StartEventLocked();
62 event->DurationBegin(label);
66 }
67 }
static ThreadId ThreadIdFromIntPtr(intptr_t id)
static OSThread * Current()
◆ FinishBlock()
static void dart::TimelineTestHelper::FinishBlock |
( |
TimelineEventBlock * |
block | ) |
|
|
inlinestatic |
◆ GetRecorderLock()
static Mutex & dart::TimelineTestHelper::GetRecorderLock |
( |
TimelineEventRecorder & |
recorder | ) |
|
|
inlinestatic |
◆ SetStream()
static void dart::TimelineTestHelper::SetStream |
( |
TimelineEvent * |
event, |
|
|
TimelineStream * |
stream |
|
) |
| |
|
inlinestatic |
The documentation for this class was generated from the following file: