Skip to content

v0.11.0-tracy

Compare
Choose a tag to compare
@tgfrerer tgfrerer released this 23 May 09:06
· 464 commits to wip since this release
1a39093

What's Changed

  • add support for nano-second resolution profiling with Tracy

You can profile any Island app by compiling it with the line add_compile_definitions( TRACY_ENABLE ) added to its project's top-most CMakeLists.txt file. When the app runs, it will connect to the Tracy Profiler. Tracy will give you real-time insight into where the app spends CPU time.

Profiling works with Debug and Release builds - both on Linux and Windows. Profiling works with hot-reloading - you can add and remove profiling primitives while hot-reloading and profiling.

The Tracy profiler is a standalone, separate app. You can build it from source from the code contained in the tracy submodule (found in modules/le_tracy/3rdparty/tracy/profiler/build/)

You can profile application code regions by adding the le_tracy module, and including the le_tracy.h header. This header gives access to all the Tracy profiling primitives, if tracing is enabled via TRACY_ENABLE (see above).

When tracing is not enabled (as is the default), tracing primitives melt away to no-ops.

Note

Tracy is included via a submodule - you need to invoke

git submodule init
git submodule update

for the tracy source code to be checked out.

Full Changelog: v0.10.0-renderpass-ergonomics...v0.11.0-tracy