Skip to content

Conversation

jiahaog
Copy link
Member

@jiahaog jiahaog commented Jun 22, 2020

Description

When retainPriorEvents is passed as true, the current behavior still limits timeline events to the timestamp after traceEvents is called. This can cause startup events to be missing.

This fixes it by passing null to stopTracingAndDownloadTimeline for the start and end time.

Related Issues

#58430
b/158233207

When `retainPriorEvents` is passed as true, the current behavior still limits timeline events to the timestamp after `traceEvents` is called. This can cause startup events to be missing.

This fixes it by passing null to `stopTracingAndDownloadTimeline` for the start and end time.

Related: flutter#58430
@fluttergithubbot fluttergithubbot added a: tests "flutter test", flutter_test, or one of our tests framework flutter/packages/flutter repository. See also f: labels. work in progress; do not review labels Jun 22, 2020
@jiahaog jiahaog changed the title [Flutter Driver] Fix tracing of startup events [flutter_driver] Fix tracing of startup events Jun 22, 2020
@jiahaog jiahaog marked this pull request as ready for review June 22, 2020 14:17
@jiahaog jiahaog requested a review from jonahwilliams June 22, 2020 14:17
Copy link
Contributor

@jonahwilliams jonahwilliams left a comment

Choose a reason for hiding this comment

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

Lgtm

@jiahaog jiahaog merged commit dd6dd7a into flutter:master Jun 23, 2020
@jiahaog jiahaog deleted the fix-trace-events-startup branch June 23, 2020 00:07
mingwandroid pushed a commit to mingwandroid/flutter that referenced this pull request Sep 6, 2020
When `retainPriorEvents` is passed as true, the current behavior still limits timeline events to the timestamp after `traceEvents` is called. This can cause startup events to be missing.

This fixes it by passing null to `stopTracingAndDownloadTimeline` for the start and end time.

Related: flutter#58430
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a: tests "flutter test", flutter_test, or one of our tests framework flutter/packages/flutter repository. See also f: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants