diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index 1244979b..f00124e0 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -3194,47 +3194,6 @@ void Profiler::SymbolWorker() } #endif -#if 0 -void Profiler::SendCallstackFrame( uint64_t ptr ) -{ -#ifdef TRACY_HAS_CALLSTACK - const auto frameData = DecodeCallstackPtr( ptr ); - - { - SendSingleString( frameData.imageName ); - - QueueItem item; - MemWrite( &item.hdr.type, QueueType::CallstackFrameSize ); - MemWrite( &item.callstackFrameSize.ptr, ptr ); - MemWrite( &item.callstackFrameSize.size, frameData.size ); - - AppendData( &item, QueueDataSize[(int)QueueType::CallstackFrameSize] ); - } - - InitRpmalloc(); - for( uint8_t i=0; i> 63 != 0 ) - { - SendSingleString( "" ); - QueueItem item; - MemWrite( &item.hdr.type, QueueType::SymbolInformation ); - MemWrite( &item.symbolInformation.line, 0 ); - MemWrite( &item.symbolInformation.symAddr, symbol ); - AppendData( &item, QueueDataSize[(int)QueueType::SymbolInformation] ); - return; - } -# ifdef __ANDROID__ - // On Android it's common for code to be in mappings that are only executable - // but not readable. - if( !EnsureReadable( symbol ) ) - { - AckServerQuery(); - return; - } -# endif - const auto sym = DecodeSymbolAddress( symbol ); - - SendSingleString( sym.file ); - - QueueItem item; - MemWrite( &item.hdr.type, QueueType::SymbolInformation ); - MemWrite( &item.symbolInformation.line, sym.line ); - MemWrite( &item.symbolInformation.symAddr, symbol ); - - AppendData( &item, QueueDataSize[(int)QueueType::SymbolInformation] ); - - if( sym.needFree ) tracy_free( (void*)sym.file ); -#endif -} -#endif - void Profiler::HandleSymbolCodeQuery( uint64_t symbol, uint32_t size ) { #ifdef __ANDROID__ @@ -3780,28 +3699,6 @@ void Profiler::HandleSourceCodeQuery() m_queryData = nullptr; } -#if 0 -void Profiler::SendCodeLocation( uint64_t ptr ) -{ -#ifdef TRACY_HAS_CALLSTACK - const auto sym = DecodeCodeAddress( ptr ); - - const uint64_t offset = ptr - sym.symAddr; - SendSingleString( sym.file ); - - QueueItem item; - MemWrite( &item.hdr.type, QueueType::CodeInformation ); - MemWrite( &item.codeInformation.ptrOffset, offset ); - MemWrite( &item.codeInformation.line, sym.line ); - MemWrite( &item.codeInformation.symAddr, sym.symAddr ); - - AppendData( &item, QueueDataSize[(int)QueueType::CodeInformation] ); - - if( sym.needFree ) tracy_free( (void*)sym.file ); -#endif -} -#endif - #if defined _WIN32 && defined TRACY_TIMER_QPC int64_t Profiler::GetTimeQpc() {