Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@gaaclarke
Copy link
Member

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

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide and the C++, Objective-C, Java style guides.
  • I listed at least one issue that this PR fixes in the description above.
  • I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test-exempt. See testing the engine for instructions on
    writing and running engine tests.
  • I updated/added relevant documentation (doc comments with ///).
  • I signed the CLA.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@gaaclarke gaaclarke marked this pull request as ready for review June 22, 2022 18:26
@gaaclarke gaaclarke requested a review from dnfield June 22, 2022 18:26
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",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
TRACE_EVENT_ASYNC_BEGIN1("flutter", "PlatformChannel:ScheduleResult",
TRACE_EVENT_ASYNC_BEGIN1("flutter", "PlatformChannel::ScheduleResult",

Copy link
Member Author

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.

Copy link
Contributor

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@gaaclarke gaaclarke requested a review from dnfield June 28, 2022 17:52
@jmagman
Copy link
Member

jmagman commented Jul 13, 2022

Friendly bump, is this waiting on another review from @dnfield?

@dnfield dnfield added the autosubmit Merge PR when tree becomes green via auto submit App label Jul 13, 2022
@auto-submit auto-submit bot merged commit 06fa87a into flutter:main Jul 13, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jul 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

autosubmit Merge PR when tree becomes green via auto submit App platform-android platform-ios

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants