Skip to content

Improve dart:developer Timeline API #56274

@kenzieschmoll

Description

@kenzieschmoll

Copying feedback for the timeline api from dart:developer over to its own issue in the Dart SDK (original issue: flutter/devtools#8045). CC @bkonyi

Timeline API:

  1. it is very hard to predict on which perfetto "track" my traces will end up on. for instance: calling Timeline.startSync / Timeline.finishSync will (maybe) end up on the flutter ui track, whereas Timeline.instantSync will end up on a different Track.
  2. TimelineTask creates a Track for each layer. this is undesired.
  3. the documentation is very lacking. what does the Map argument in startSync is meant for? what can we do with it?

The most fundamental thing to add to the API is the the ability to have my traces on a separate track. perfetto::Track(_trackId).
This way I can view all of them on a single track in the perfetto trace. and not in between all the flutter traces I am not interested in.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.library-developertype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions