-
Notifications
You must be signed in to change notification settings - Fork 6k
FrameTiming build start timestamp fix and add vsync start timestamp #20229
Conversation
| FML_DCHECK(producer_continuation_); | ||
|
|
||
| last_frame_begin_time_ = frame_start_time; | ||
| last_frame_begin_time_ = fml::TimePoint::Now(); |
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.
when we post a trace event for VsyncSchedulingOverhead we also use fml::TimePoint::Now(). Can we unify both these and maybe post a trace event here instead?
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.
Not 100% sure I understand but I made a commit moving the TaceEventAsyncComplete line. PTAL.
|
I realized that I need also to update the framework code as in flutter/flutter#62933 . How should this work? @liyuqian |
I'd suggest adding a new
Additionally, we can make the |
|
Should this PR also update |
I just duplicated And I'm guessing there may be google internal tests that's calling the old constructor, but I need confirm. |
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.
LGTM. I didn't find any reference to the FrameTiming constructors when I searched \bFrameTiming\b -file:third_party file:.dart inside the Googler internal code search tool.
Description
See flutter/flutter#62689
The original build_start time stamp is now vsync_start, and the current build time closer to what we get from timeline events.
Related Issues
fixes flutter/flutter#62689
Tests
I modify the
'FrameTiming.toString has the correct format'test intesting/dart/window_test.dartChecklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]). This will ensure a smooth and quick review process.Breaking Change
Did any tests fail when you ran them? Please read handling breaking changes.