7 #include "flutter/fml/trace_event.h"
14 + (void)tracePlatformVsyncWithStartTime:(NSTimeInterval)startTime
15 targetTime:(NSTimeInterval)targetTime {
16 int64_t startTimeMicroseconds = (int64_t)(startTime * 1000000);
17 int64_t targetTimeMicroseconds = (int64_t)(targetTime * 1000000);
18 TRACE_EVENT2_INT(
"flutter",
"PlatformVsync",
"frame_start_time", startTimeMicroseconds,
19 "frame_target_time", targetTimeMicroseconds);
22 + (void)traceAsyncBegin:(NSString*)name eventID:(int64_t)eventID {
23 TRACE_EVENT_ASYNC_BEGIN0(
"flutter", [name UTF8String] ?:
"", eventID);
26 + (void)traceAsyncEnd:(NSString*)name eventID:(int64_t)eventID {
27 TRACE_EVENT_ASYNC_END0(
"flutter", [name UTF8String] ?:
"", eventID);
30 + (void)beginSection:(NSString*)name {
31 ::fml::tracing::TraceEvent0(
"flutter", [name UTF8String] ?:
"", 0,
nullptr);
34 + (void)endSection:(NSString*)name {
35 ::fml::tracing::TraceEventEnd([name UTF8String] ?:
"");
#define FLUTTER_ASSERT_ARC