Skip to content

Commit

Permalink
Merge pull request #611 from Geod24/tracy_demangle_fix
Browse files Browse the repository at this point in the history
Fix and test TRACY_DEMANGLE for TracyClient
  • Loading branch information
wolfpld authored Sep 6, 2023
2 parents f15de19 + c6d9741 commit 4e83aa3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/gcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ jobs:
make -j`nproc` -C test TRACYFLAGS=-DTRACY_ON_DEMAND
make -j`nproc` -C test clean
make -j`nproc` -C test TRACYFLAGS="-DTRACY_DELAYED_INIT -DTRACY_MANUAL_LIFETIME"
make -C test -B ../public/TracyClient.o DEFINES='-DTRACY_DEMANGLE'
4 changes: 4 additions & 0 deletions public/client/TracyCallstack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,9 @@ void InitCallstackCritical()
void InitCallstack()
{
cb_bts = backtrace_create_state( nullptr, 0, nullptr, nullptr );
#ifndef TRACY_DEMANGLE
___tracy_init_demangle_buffer();
#endif

#ifdef __linux
InitKernelSymbols();
Expand Down Expand Up @@ -761,7 +763,9 @@ debuginfod_client* GetDebuginfodClient()

void EndCallstack()
{
#ifndef TRACY_DEMANGLE
___tracy_free_demangle_buffer();
#endif
#ifdef TRACY_DEBUGINFOD
ClearDebugInfoVector( s_di_known );
debuginfod_end( s_debuginfod );
Expand Down

0 comments on commit 4e83aa3

Please sign in to comment.