mirror of
https://github.com/wolfpld/tracy
synced 2025-05-03 14:03:52 +00:00
Use query cache.
This commit is contained in:
parent
ec895372b7
commit
23c59a6fc9
@ -2863,8 +2863,7 @@ void Worker::NewZone( ZoneEvent* zone, uint64_t thread )
|
|||||||
ztd.SetZone( zone );
|
ztd.SetZone( zone );
|
||||||
ztd.SetThread( CompressThread( thread ) );
|
ztd.SetThread( CompressThread( thread ) );
|
||||||
#else
|
#else
|
||||||
auto cnt = GetSourceLocationZonesCnt( zone->SrcLoc() );
|
CountZoneStatistics( zone );
|
||||||
(*cnt)++;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
auto td = NoticeThread( thread );
|
auto td = NoticeThread( thread );
|
||||||
@ -5153,9 +5152,8 @@ void Worker::ReconstructZoneStatistics( ZoneEvent* zone, uint16_t thread )
|
|||||||
#else
|
#else
|
||||||
void Worker::CountZoneStatistics( ZoneEvent* zone )
|
void Worker::CountZoneStatistics( ZoneEvent* zone )
|
||||||
{
|
{
|
||||||
auto it = m_data.sourceLocationZonesCnt.find( zone->SrcLoc() );
|
auto cnt = GetSourceLocationZonesCnt( zone->SrcLoc() );
|
||||||
assert( it != m_data.sourceLocationZonesCnt.end() );
|
(*cnt)++;
|
||||||
it->second++;
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user