tracy icon indicating copy to clipboard operation
tracy copied to clipboard

Cannot Find Zone by ZoneName macro?

Open yuchting opened this issue 1 year ago • 4 comments

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?

yuchting avatar Nov 26 '24 11:11 yuchting

This is expected and documented behavior.

wolfpld avatar Nov 26 '24 11:11 wolfpld

This is expected and documented behavior.

Thanks for this explaination, but is this behavior correct? Or in other way, how can I search the ZoneName global in profiler?

yuchting avatar Nov 27 '24 02:11 yuchting

Use ZoneTransient instead.

slomp avatar Dec 06 '24 23:12 slomp

ZoneTransient helps me to address this in most cases but I have a use case for C Zones (basically to start/end in different functions), whats the C equivalent for ZoneTransient? I dont see one

boguscoder avatar Apr 02 '25 01:04 boguscoder