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;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    observatory migrationRelated to the Observatory -> DevTools migration effortscreen: cpu profilerIssues related to the CPU Profiler screen

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions