-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Description
Hello there,
Unfortunately I have a issue with Tracy profiler 0.13.0 where in the profiler, I only see one frame, containing multiple zones where it should not.
To simplify my explanation, I made a simple program that uses tracy :
#include <cstdlib>
#include <iostream>
#include <thread>
#include <tracy/Tracy.hpp>
void draw()
{
ZoneScopedN("draw");
std::cout << "Frame" << std::endl;
std::this_thread::sleep_for(std::chrono::milliseconds(100));
}
int main()
{
for (size_t i = 1; i < 100; ++i)
{
draw();
FrameMark;
}
std::this_thread::sleep_for(std::chrono::milliseconds(500));
return EXIT_SUCCESS;
}And the corresponding CMakeLists.txt :
project(tracy-hello-world VERSION 0.0.1 LANGUAGES CXX)
add_executable(tracy-example main.cpp)
target_link_libraries(tracy-example PRIVATE
Tracy::TracyClient
)I compiled it on Rocky 9.6 in dynamic release and also tried with static release. This almost work. But i see something such as this in the profiler :
What triggers me is that i can only see one frame, it's buggy ? I tried with the pre-built 0.13.0 profiler for Windows and connected remotely to the client, and I also tried to build the profiler directly on rocky. Both results in the same issue.
The frame displayed (here frame 13) depends on when i connect the profiler. If i launch it at start it's the first frame, if i wait it will be the frame that the program is actually displaying and none after.
Any help would be appreciated since the library seems so cool to use but i would like to use it to it's full potential.