wolfpld / tracy

Frame profiler
https://tracy.nereid.pl/
Other
10.24k stars 691 forks source link

Cannot Find Zone by ZoneName macro? #930

Open yuchting opened 2 hours ago

yuchting commented 2 hours ago

I used following code:

void ShowStat()
{
    ZoneScoped;

    std::string s = "ShowStat";
    s += std::to_string(rand());

    ZoneName(s.c_str(), s.size());

    // blabla....    
}

I can search zone name by ZoneScopeN image

but I cannot find zone by the name: image

Is there anything I missed? Or just a Profiler's bug?

wolfpld commented 2 hours ago

This is expected and documented behavior.