Skip to content

abhirag/tracy_c_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tracy C Demo

Demonstrating client setup and client markup for Tracy Profiler in C. Find more details here.

Build

We are using meson with the ninja backend:

meson ninja
0.59.2 1.10.2
  1. Get the ninja binary from here
  2. Add the location of your ninja binary to your PATH environment variable
  3. Install meson
  4. Navigate to the project directory
  5. $ meson builddir
  6. $ cd builddir
  7. $ meson compile
  8. The produced binary in builddir will send traces to the Tracy server

Disable Tracy

Remove the following line from meson.build to stop collecting traces:

add_project_arguments(['-DTRACY_ENABLE=1', '-DTRACY_NO_EXIT=1'], language : ['c', 'cpp'])