Skip to content

Capturing async tasks in DevTools performance timeline. #6093

@hrajwade96

Description

@hrajwade96

I am doing some parallel operations during app launch, I tried adding trace points with Timeline class.
And I compared it by adding timestamp logs.
The time doesn't match as I read timeline uses stack (LIFO).
Let's say I have 20 operations which will start somewhat in parallel.
Since they are not sequential any of them could end in any order and I need to add a stop trace for it.
My requirement is to capture their start and end time in timeline graph.
I didn't find any mechanism to call finish with task id, hence it is removing the last added task.
I tried to check 'TimelineTask' but didn't find any good examples and not sure if it will serve my purpose.
I am blocked as I need to generate a flame chart for app launch processes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions