-
Notifications
You must be signed in to change notification settings - Fork 6k
added trace events for scheduling responses to platform messages #34230
added trace events for scheduling responses to platform messages #34230
Conversation
| FML_DCHECK(!*is_complete); | ||
| *is_complete = true; | ||
| uint64_t platform_message_id = platform_message_counter.fetch_add(1); | ||
| TRACE_EVENT_ASYNC_BEGIN1("flutter", "PlatformChannel:ScheduleResult", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| TRACE_EVENT_ASYNC_BEGIN1("flutter", "PlatformChannel:ScheduleResult", | |
| TRACE_EVENT_ASYNC_BEGIN1("flutter", "PlatformChannel::ScheduleResult", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't want to use the double colon since that denotes a c++ symbol. There isn't a c++ with this name. I wanted the 2 events that I'm adding to be associated with each other and I wanted them named the same across android and iOS since they are measuring the same thing. I don't want people to have to learn a new name for a different embedder.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahh in that case then I think the convention is just to use a space here instead of a : - like Scene display lagor Framework workload or whatever.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
shell/platform/android/io/flutter/embedding/engine/dart/DartMessenger.java
Outdated
Show resolved
Hide resolved
|
Friendly bump, is this waiting on another review from @dnfield? |
This measures the latency between thread hops when sending messages from Flutter->Host and responding Host->Flutter.
We have platform channel channel profiling on the framework side, but it can't determine how much of the round trip time is just the latency between scheduling on a thread and it actually getting serviced.
Pre-launch Checklist
writing and running engine tests.
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.