yse / easy_profiler

Lightweight profiler library for c++
MIT License
2.14k stars 184 forks source link

Can't find the way to see EASY_VALUE and EASY_EVENT #182

Closed andreyryabov closed 4 years ago

andreyryabov commented 4 years ago

Apple clang version 11.0.0 (clang-1100.0.33.17) Target: x86_64-apple-darwin19.4.0 Thread model: posix

#include <string>
#include <easy/profiler.h>
#include <easy/arbitrary_value.h>

void test() {
    EASY_FUNCTION();
    EASY_VALUE("v1", 111);
    EASY_EVENT("e1", 222);
}

int main() {
    EASY_PROFILER_ENABLE;

    test();

    profiler::dumpBlocksToFile("test_profile_values.prof");
}

Where do I see the actual values for 'v1' and 'e2' ?

bdb873100bfd47d86b84f68dbafe92a2

yse commented 4 years ago

Hello! I think this is MacOS specific bug. We've tested a very little on the MacOS. I'll try to fix it, thanks for feedback. So - arbitrary values can be found in caption. Example on my linux: image

andreyryabov commented 4 years ago

No caption fo Arbitrary Value on macOS.

Screen Shot 2020-06-06 at 1 31 03 PM

Caption without value of Event.

Screen Shot 2020-06-06 at 1 31 23 PM
yse commented 4 years ago

So I've made quick fix for MacOS. There is different behaviour of widgets with Qt::SubWindow flag on MacOS. I think by the same reason there is bug with absent Blocks dialog (from toolbar). I'll try to fix it also! But I need to gather some information about gui system on mac. Thanks for testing and feedback!

andreyryabov commented 4 years ago

Really appreciate the quick fix, helped a lot in my work.