19#if defined(SUPPORT_TIMELINE)
20 if (Timeline::GetDartStream()->enabled()) {
28#if !defined(SUPPORT_TIMELINE)
40#if defined(SUPPORT_TIMELINE)
47 TimelineEventRecorder* recorder = Timeline::recorder();
48 if (recorder ==
nullptr) {
52 TimelineEvent*
event = Timeline::GetDartStream()->StartEvent();
53 if (
event ==
nullptr) {
58 std::unique_ptr<const int64_t[]> flow_ids;
59 if (flow_id.AsInt64Value() != TimelineEvent::kNoFlowId) {
60 int64_t* flow_ids_internal =
new int64_t[1];
61 flow_ids_internal[0] = flow_id.AsInt64Value();
62 flow_ids = std::unique_ptr<const int64_t[]>(flow_ids_internal);
64 intptr_t flow_id_count =
65 flow_id.AsInt64Value() == TimelineEvent::kNoFlowId ? 0 : 1;
66 DartTimelineEventHelpers::ReportTaskEvent(
67 event,
id.AsInt64Value(), flow_id_count, flow_ids,
type.Value(),
68 name.ToMallocCString(),
args.ToMallocCString());
static const Bool & False()
static const Bool & True()
static IntegerPtr New(const String &str, Heap::Space space=Heap::kNew)
static int64_t GetCurrentMonotonicMicros()
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
DEFINE_NATIVE_ENTRY(List_allocate, 0, 2)
#define GET_NON_NULL_NATIVE_ARGUMENT(type, name, value)