Files
cpp-project-template/examples/tracy_demo.cc
tqcq ed976db651
Some checks failed
cpp-template / build (Debug, aarch64-linux-gnu) (push) Failing after 18s
cpp-template / build (Debug, arm-linux-gnueabihf) (push) Failing after 17s
cpp-template / build (Debug, mipsel-linux-gnu) (push) Failing after 18s
cpp-template / build (Release, aarch64-linux-gnu) (push) Failing after 13s
cpp-template / build (Release, host.gcc) (push) Has been cancelled
cpp-template / build (Release, mipsel-linux-gnu) (push) Has been cancelled
cpp-template / build (Debug, host.gcc) (push) Has been cancelled
cpp-template / build (Release, arm-linux-gnueabihf) (push) Has been cancelled
feat add microprofile
2025-08-26 00:55:10 +08:00

21 lines
340 B
C++

#include <common/TracyMutex.hpp>
#include <mutex>
#include <tracy/Tracy.hpp>
void Test()
{
TracyLockable(std::mutex, lock);
std::lock_guard<LockableBase(std::mutex)> _(lock);
std::this_thread::sleep_for(std::chrono::milliseconds(1));
}
int main()
{
ZoneScoped;
while (true)
{
Test();
}
return 0;
}