Skip to content

How to profile a unit test?Β #60179

@stephane-archer

Description

@stephane-archer

I have a function that takes more time than I would like to.
I call this function in many unit tests and I would like to improve the overall performance of the function.

How can I see what takes time for each unit test? (ideally a line-by-line analysis)

The CPU profiler seems to be accessible only when running the app.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.type-questionA question about expected behavior or functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions