Skip to content

Tracy client slow startup due to Symbol resolution pre-caching #480

@KiviTK

Description

@KiviTK

The Trarcy profilee starts up very slowly in my case, around 2-3 minutes, however after this the applications continues to run normally.
A quick glance with a profiler (VerySleepy in this case) shows that almost all this time is taken up by the FindFirstFileW WinAPI function.

I have attached the typical call stack for this function in the application.
callstack

Removing Tracy from the build fixes the issue and the application starts up instantly as expected. If breakpoints are added, it is clear that this hang is caused at static initialization time since the breakpoint in main will not get hit until the application starts normally.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestwindowsThe issue is Microsoft-specific

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions