mirror of
https://github.com/wolfpld/tracy
synced 2025-04-30 04:43:53 +00:00
Propagate inlines for hw sample impact.
This commit is contained in:
parent
e7da2efdd1
commit
47ec7de479
@ -4951,12 +4951,17 @@ void SourceView::CountHwStats( AddrStatData& as, Worker& worker, const View& vie
|
||||
|
||||
if( filename )
|
||||
{
|
||||
uint32_t line;
|
||||
const auto fref = worker.GetLocationForAddress( addr, line );
|
||||
if( line != 0 )
|
||||
auto frame = worker.GetCallstackFrame( worker.PackPointer( addr ) );
|
||||
if( frame )
|
||||
{
|
||||
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 )
|
||||
{
|
||||
const auto line = frame->data[i].line;
|
||||
if( line != 0 )
|
||||
{
|
||||
auto it = as.hwCountSrc.find( line );
|
||||
if( it == as.hwCountSrc.end() )
|
||||
@ -4978,6 +4983,8 @@ void SourceView::CountHwStats( AddrStatData& as, Worker& worker, const View& vie
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void SourceView::GatherIpStats( uint64_t baseAddr, AddrStatData& as, const Worker& worker, bool limitView, const View& view )
|
||||
|
Loading…
x
Reference in New Issue
Block a user