mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-29 16:54:35 +00:00
Merge pull request #611 from Geod24/tracy_demangle_fix
Fix and test TRACY_DEMANGLE for TracyClient
This commit is contained in:
commit
4e83aa3818
1
.github/workflows/gcc.yml
vendored
1
.github/workflows/gcc.yml
vendored
@ -42,3 +42,4 @@ jobs:
|
|||||||
make -j`nproc` -C test TRACYFLAGS=-DTRACY_ON_DEMAND
|
make -j`nproc` -C test TRACYFLAGS=-DTRACY_ON_DEMAND
|
||||||
make -j`nproc` -C test clean
|
make -j`nproc` -C test clean
|
||||||
make -j`nproc` -C test TRACYFLAGS="-DTRACY_DELAYED_INIT -DTRACY_MANUAL_LIFETIME"
|
make -j`nproc` -C test TRACYFLAGS="-DTRACY_DELAYED_INIT -DTRACY_MANUAL_LIFETIME"
|
||||||
|
make -C test -B ../public/TracyClient.o DEFINES='-DTRACY_DEMANGLE'
|
||||||
|
@ -686,7 +686,9 @@ void InitCallstackCritical()
|
|||||||
void InitCallstack()
|
void InitCallstack()
|
||||||
{
|
{
|
||||||
cb_bts = backtrace_create_state( nullptr, 0, nullptr, nullptr );
|
cb_bts = backtrace_create_state( nullptr, 0, nullptr, nullptr );
|
||||||
|
#ifndef TRACY_DEMANGLE
|
||||||
___tracy_init_demangle_buffer();
|
___tracy_init_demangle_buffer();
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __linux
|
#ifdef __linux
|
||||||
InitKernelSymbols();
|
InitKernelSymbols();
|
||||||
@ -761,7 +763,9 @@ debuginfod_client* GetDebuginfodClient()
|
|||||||
|
|
||||||
void EndCallstack()
|
void EndCallstack()
|
||||||
{
|
{
|
||||||
|
#ifndef TRACY_DEMANGLE
|
||||||
___tracy_free_demangle_buffer();
|
___tracy_free_demangle_buffer();
|
||||||
|
#endif
|
||||||
#ifdef TRACY_DEBUGINFOD
|
#ifdef TRACY_DEBUGINFOD
|
||||||
ClearDebugInfoVector( s_di_known );
|
ClearDebugInfoVector( s_di_known );
|
||||||
debuginfod_end( s_debuginfod );
|
debuginfod_end( s_debuginfod );
|
||||||
|
Loading…
Reference in New Issue
Block a user