Skip to content

Profiler does not show class and method for closures #5354

Description

@kenzieschmoll

Observatory:
Screenshot 2023-03-03 at 4 08 21 PM
DevTools:
Screenshot 2023-03-03 at 4 08 40 PM
CC @bkonyi if you know how observatory might be getting the class and method for the closure. The code to generate the name in DevTools is as follows:

    String? nameForStackFrame(_CpuProfileTimelineTree current) {
      final className = current.className;
      if (className != null) {
        return '$className.${current.name}';
      }
      return current.name;
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions