Cannot Find Zone by ZoneName macro?
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
but I cannot find zone by the name:
Is there anything I missed? Or just a Profiler's bug?
This is expected and documented behavior.
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?
Use ZoneTransient instead.
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