1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Rename has_stacktrace -> has_callstack

This commit is contained in:
Igor S. Gerasimov
2024-12-27 11:43:00 +01:00
parent 9aba23bbb0
commit a2fce55aee
4 changed files with 18 additions and 18 deletions
+7 -7
View File
@@ -513,7 +513,7 @@ public:
static tracy_force_inline void MemAllocCallstack( const void* ptr, size_t size, int depth, bool secure )
{
if( secure && !ProfilerAvailable() ) return;
if (depth > 0 && has_stacktrace()) {
if (depth > 0 && has_callstack()) {
auto& profiler = GetProfiler();
# ifdef TRACY_ON_DEMAND
if( !profiler.IsConnected() ) return;
@@ -539,7 +539,7 @@ public:
MemFree( ptr, secure );
return;
}
if (depth > 0 && has_stacktrace()) {
if (depth > 0 && has_callstack()) {
auto& profiler = GetProfiler();
# ifdef TRACY_ON_DEMAND
if( !profiler.IsConnected() ) return;
@@ -588,7 +588,7 @@ public:
static tracy_force_inline void MemAllocCallstackNamed( const void* ptr, size_t size, int depth, bool secure, const char* name )
{
if( secure && !ProfilerAvailable() ) return;
if (depth > 0 && has_stacktrace()) {
if (depth > 0 && has_callstack()) {
auto& profiler = GetProfiler();
# ifdef TRACY_ON_DEMAND
if( !profiler.IsConnected() ) return;
@@ -610,7 +610,7 @@ public:
static tracy_force_inline void MemFreeCallstackNamed( const void* ptr, int depth, bool secure, const char* name )
{
if( secure && !ProfilerAvailable() ) return;
if (depth > 0 && has_stacktrace()) {
if (depth > 0 && has_callstack()) {
auto& profiler = GetProfiler();
# ifdef TRACY_ON_DEMAND
if( !profiler.IsConnected() ) return;
@@ -645,7 +645,7 @@ public:
static tracy_force_inline void MemDiscardCallstack( const char* name, bool secure, int depth )
{
if( secure && !ProfilerAvailable() ) return;
if (depth > 0 && has_stacktrace()) {
if (depth > 0 && has_callstack()) {
# ifdef TRACY_ON_DEMAND
if( !GetProfiler().IsConnected() ) return;
# endif
@@ -664,7 +664,7 @@ public:
static tracy_force_inline void SendCallstack( int depth )
{
if (depth > 0 && has_stacktrace()) {
if (depth > 0 && has_callstack()) {
auto ptr = Callstack( depth );
TracyQueuePrepare( QueueType::Callstack );
MemWrite( &item->callstackFat.ptr, (uint64_t)ptr );
@@ -904,7 +904,7 @@ private:
static tracy_force_inline void SendCallstackSerial( void* ptr )
{
if (has_stacktrace()) {
if (has_callstack()) {
auto item = GetProfiler().m_serialQueue.prepare_next();
MemWrite( &item->hdr.type, QueueType::CallstackSerial );
MemWrite( &item->callstackFat.ptr, (uint64_t)ptr );