mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Remove CodeLocation query and CodeInformation response.
This commit is contained in:
@@ -2173,16 +2173,6 @@ static void FreeAssociatedMemory( const QueueItem& item )
|
||||
}
|
||||
break;
|
||||
}
|
||||
case QueueType::CodeInformation:
|
||||
{
|
||||
uint8_t needFree = MemRead<uint8_t>( &item.codeInformationFat.needFree );
|
||||
if( needFree )
|
||||
{
|
||||
ptr = MemRead<uint64_t>( &item.codeInformationFat.fileString );
|
||||
tracy_free( (void*)ptr );
|
||||
}
|
||||
break;
|
||||
}
|
||||
case QueueType::SymbolCodeMetadata:
|
||||
ptr = MemRead<uint64_t>( &item.symbolCodeMetadata.ptr );
|
||||
tracy_free( (void*)ptr );
|
||||
@@ -2481,14 +2471,6 @@ Profiler::DequeueStatus Profiler::Dequeue( moodycamel::ConsumerToken& token )
|
||||
if( needFree ) tracy_free_fast( (void*)fileString );
|
||||
break;
|
||||
}
|
||||
case QueueType::CodeInformation:
|
||||
{
|
||||
auto fileString = (const char*)MemRead<uint64_t>( &item->codeInformationFat.fileString );
|
||||
auto needFree = MemRead<uint8_t>( &item->codeInformationFat.needFree );
|
||||
SendSingleString( fileString );
|
||||
if( needFree ) tracy_free_fast( (void*)fileString );
|
||||
break;
|
||||
}
|
||||
case QueueType::SymbolCodeMetadata:
|
||||
{
|
||||
auto symbol = MemRead<uint64_t>( &item->symbolCodeMetadata.symbol );
|
||||
@@ -3163,15 +3145,6 @@ void Profiler::QueueSymbolQuery( uint64_t symbol )
|
||||
#endif
|
||||
}
|
||||
|
||||
void Profiler::QueueCodeLocation( uint64_t ptr )
|
||||
{
|
||||
#ifdef TRACY_HAS_CALLSTACK
|
||||
m_symbolQueue.emplace( SymbolQueueItem { SymbolQueueItemType::CodeLocation, ptr } );
|
||||
#else
|
||||
AckServerQuery();
|
||||
#endif
|
||||
}
|
||||
|
||||
void Profiler::QueueExternalName( uint64_t ptr )
|
||||
{
|
||||
#ifdef TRACY_HAS_SYSTEM_TRACING
|
||||
@@ -3228,19 +3201,6 @@ void Profiler::HandleSymbolQueueItem( const SymbolQueueItem& si )
|
||||
TracyLfqCommit;
|
||||
break;
|
||||
}
|
||||
case SymbolQueueItemType::CodeLocation:
|
||||
{
|
||||
const auto sym = DecodeCodeAddress( si.ptr );
|
||||
const uint64_t offset = si.ptr - sym.symAddr;
|
||||
TracyLfqPrepare( QueueType::CodeInformation );
|
||||
MemWrite( &item->codeInformationFat.ptrOffset, offset );
|
||||
MemWrite( &item->codeInformationFat.line, sym.line );
|
||||
MemWrite( &item->codeInformationFat.symAddr, sym.symAddr );
|
||||
MemWrite( &item->codeInformationFat.fileString, (uint64_t)sym.file );
|
||||
MemWrite( &item->codeInformationFat.needFree, (uint8_t)sym.needFree );
|
||||
TracyLfqCommit;
|
||||
break;
|
||||
}
|
||||
#ifdef TRACY_HAS_SYSTEM_TRACING
|
||||
case SymbolQueueItemType::ExternalName:
|
||||
{
|
||||
@@ -3404,9 +3364,6 @@ bool Profiler::HandleServerQuery()
|
||||
HandleSymbolCodeQuery( ptr, extra );
|
||||
break;
|
||||
#endif
|
||||
case ServerQueryCodeLocation:
|
||||
QueueCodeLocation( ptr );
|
||||
break;
|
||||
case ServerQuerySourceCode:
|
||||
HandleSourceCodeQuery();
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user