mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 14:44:34 +00:00
Replace code location queries with callstack frame ones.
This commit is contained in:
parent
c9adadf86a
commit
4d0768ba9d
@ -4166,10 +4166,15 @@ void Worker::AddSymbolCode( uint64_t ptr, const char* data, size_t sz )
|
|||||||
size_t cnt = cs_disasm( handle, (const uint8_t*)code, sz, ptr, 0, &insn );
|
size_t cnt = cs_disasm( handle, (const uint8_t*)code, sz, ptr, 0, &insn );
|
||||||
if( cnt > 0 )
|
if( cnt > 0 )
|
||||||
{
|
{
|
||||||
m_pendingCodeInformation += cnt;
|
|
||||||
for( size_t i=0; i<cnt; i++ )
|
for( size_t i=0; i<cnt; i++ )
|
||||||
{
|
{
|
||||||
Query( ServerQueryCodeLocation, insn[i].address );
|
const auto addr = insn[i].address;
|
||||||
|
const auto ptr = PackPointer( addr );
|
||||||
|
if( m_data.callstackFrameMap.find( ptr ) == m_data.callstackFrameMap.end() )
|
||||||
|
{
|
||||||
|
m_pendingCallstackFrames++;
|
||||||
|
Query( ServerQueryCallstackFrame, addr );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
cs_free( insn, cnt );
|
cs_free( insn, cnt );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user