mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 20:33:52 +00:00
Include hardware samples in inline propagation.
This commit is contained in:
parent
5db18087f5
commit
e7da2efdd1
@ -4876,12 +4876,17 @@ void SourceView::GatherIpHwStats( AddrStatData& as, Worker& worker, const View&
|
|||||||
|
|
||||||
if( filename )
|
if( filename )
|
||||||
{
|
{
|
||||||
uint32_t line;
|
auto frame = worker.GetCallstackFrame( worker.PackPointer( addr ) );
|
||||||
const auto fref = worker.GetLocationForAddress( addr, line );
|
if( frame )
|
||||||
if( line != 0 )
|
|
||||||
{
|
{
|
||||||
auto ffn = worker.GetString( fref );
|
const auto end = m_propagateInlines ? frame->size : 1;
|
||||||
|
for( uint8_t i=0; i<end; i++ )
|
||||||
|
{
|
||||||
|
auto ffn = worker.GetString( frame->data[i].file );
|
||||||
if( strcmp( ffn, filename ) == 0 )
|
if( strcmp( ffn, filename ) == 0 )
|
||||||
|
{
|
||||||
|
const auto line = frame->data[i].line;
|
||||||
|
if( line != 0 )
|
||||||
{
|
{
|
||||||
auto it = as.ipCountSrc.find( line );
|
auto it = as.ipCountSrc.find( line );
|
||||||
if( it == as.ipCountSrc.end() )
|
if( it == as.ipCountSrc.end() )
|
||||||
@ -4900,6 +4905,8 @@ void SourceView::GatherIpHwStats( AddrStatData& as, Worker& worker, const View&
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void SourceView::CountHwStats( AddrStatData& as, Worker& worker, const View& view )
|
void SourceView::CountHwStats( AddrStatData& as, Worker& worker, const View& view )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user