diff --git a/README.md b/README.md index 0719f405..a8be845c 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ Copy files from `tracy/client` and `tracy/common` to your project. Add `tracy/Tr #### Marking zones -To begin data collection, tracy requires that you manually instrument your application (automatic tracing of every entered function is not feasible due to the amount of data that would generate). All the user-facing interface is contained in the `tracy/client/Tracy.hpp` header file. +To begin data collection, tracy requires that you manually instrument your application (automatic tracing of every entered function is not feasible due to the amount of data that would generate). All the user-facing interface is contained in the `tracy/Tracy.hpp` header file. To slice the program's execution recording into frame-sized chunks, put the `FrameMark` macro after you have completed rendering the frame. Ideally that would be right after the swap buffers command. Note that this step is optional, as some applications (for example: a compression utility) do not have the concept of a frame. diff --git a/client/Tracy.hpp b/Tracy.hpp similarity index 94% rename from client/Tracy.hpp rename to Tracy.hpp index 331bc014..e9c8f4ee 100644 --- a/client/Tracy.hpp +++ b/Tracy.hpp @@ -23,9 +23,9 @@ #else -#include "TracyLock.hpp" -#include "TracyProfiler.hpp" -#include "TracyScoped.hpp" +#include "client/TracyLock.hpp" +#include "client/TracyProfiler.hpp" +#include "client/TracyScoped.hpp" #define ZoneScoped static const tracy::SourceLocation __tracy_source_location { __FUNCTION__, __FILE__, (uint32_t)__LINE__, 0 }; tracy::ScopedZone ___tracy_scoped_zone( &__tracy_source_location ); #define ZoneScopedC( color ) static const tracy::SourceLocation __tracy_source_location { __FUNCTION__, __FILE__, (uint32_t)__LINE__, color }; tracy::ScopedZone ___tracy_scoped_zone( &__tracy_source_location ); diff --git a/test/test.cpp b/test/test.cpp index ad1dadea..c8b81d19 100644 --- a/test/test.cpp +++ b/test/test.cpp @@ -1,7 +1,7 @@ #include #include #include -#include "../client/Tracy.hpp" +#include "../Tracy.hpp" #include "../common/TracySystem.hpp" void TestFunction()