mirror of
https://github.com/wolfpld/tracy.git
synced 2026-08-10 23:29:45 +00:00
Collect child sample addresses.
This commit is contained in:
@@ -4507,9 +4507,9 @@ void SourceView::GatherAdditionalIpStats( uint64_t baseAddr, AddrStatData& as, c
|
||||
if( as.ipCountAsm.find( ip ) != as.ipCountAsm.end() ) continue;
|
||||
auto cp = worker.GetChildSamples( ip );
|
||||
if( !cp ) continue;
|
||||
auto it = std::lower_bound( cp->begin(), cp->end(), view.m_statRange.min, [] ( const auto& lhs, const auto& rhs ) { return lhs.Val() < rhs; } );
|
||||
auto it = std::lower_bound( cp->begin(), cp->end(), view.m_statRange.min, [] ( const auto& lhs, const auto& rhs ) { return lhs.time.Val() < rhs; } );
|
||||
if( it == cp->end() ) continue;
|
||||
auto end = std::lower_bound( it, cp->end(), view.m_statRange.max, [] ( const auto& lhs, const auto& rhs ) { return lhs.Val() < rhs; } );
|
||||
auto end = std::lower_bound( it, cp->end(), view.m_statRange.max, [] ( const auto& lhs, const auto& rhs ) { return lhs.time.Val() < rhs; } );
|
||||
const auto ccnt = uint64_t( end - it );
|
||||
as.ipCountAsm.emplace( ip, AddrStat { 0, ccnt } );
|
||||
as.ipTotalAsm.ext += ccnt;
|
||||
|
||||
Reference in New Issue
Block a user