Skip to content

CPU profiler start and end times should be able to be configured in user code #947

Closed

Description

@kenzieschmoll

In order to profile a single method or sequence of events, a user should be able to specify start and end times in their code.

Maybe there is something in the dart:developer API that the user can use to do this. Then, when recording a CPU profile, we can pull samples from the interval specified by the user-triggered events.

This mode could be enabled via a setting "explicit profile interval" or something more clever.

cc @lambdabaa

Activity

  1. escamoteur commented on Sep 10, 2019

    @escamoteur

    May I add I think a time interval might not be the best solution but just a start/stop function. Also not only for CPU profile but also Performance and a Future Method table.
    For Memory to make snapshot from the program and a command to reset the accumulator.

  2. added this to the Backlog milestone on Sep 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions