Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot Find Zone by ZoneName macro? #930

Open
yuchting opened this issue Nov 26, 2024 · 3 comments
Open

Cannot Find Zone by ZoneName macro? #930

yuchting opened this issue Nov 26, 2024 · 3 comments

Comments

@yuchting
Copy link

yuchting commented Nov 26, 2024

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
Copy link
Owner

wolfpld commented Nov 26, 2024

This is expected and documented behavior.

@yuchting
Copy link
Author

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?

@slomp
Copy link
Contributor

slomp commented Dec 6, 2024

Use ZoneTransient instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants