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

Only single main block shows in GUI #136

Closed
nayefc opened this issue Oct 28, 2018 · 1 comment
Closed

Only single main block shows in GUI #136

nayefc opened this issue Oct 28, 2018 · 1 comment
Labels

Comments

@nayefc
Copy link

nayefc commented Oct 28, 2018

Hi,

I am running this with multiple blocks to track functions but I'm only seeing my main block.

screenshot 2018-10-28 at 08 51 55

The code with the other non-main blocks is running though (it 100% is running). Why is this happening? I have a function that gets called a lot in a loop that I just added an EASY_BLOCK at the top of it. So:

int main() {
    EASY_PROFILER_ENABLE;
    EASY_BLOCK("main");
    while (true) { // this is a more complicated loop that runs until ctrl-c is invoked which is handled
        func()
    }
    EASY_END_BLOCK;
    profiler::dumpBlocksToFile("test_profile.prof");
}
void func()
{
    EASY_BLOCK("Handling JSON", profiler::colors::Red);
    .... parse json
    EASY_END_BLOCK;
}

However, I'm seeing this red colour which may refer to this Red block I have but how can I see its info? The table shows main only and nothing else. Not even the name of the red block.

Any ideas?

@cas4ey
Copy link
Collaborator

cas4ey commented Oct 31, 2018

Hi @nayefc
Your example seems OK to me...
Please, try to get familiar with profiler_sample project - maybe you will find some differences, - or give some more details.
It would be nice to hear from you after you will find what is going wrong too.

@nayefc nayefc closed this as completed Nov 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants