GPU zone counting.

This commit is contained in:
Bartosz Taudul 2022-01-23 15:47:03 +01:00
parent f1095bba12
commit f9279afaec
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3
2 changed files with 7 additions and 0 deletions

View File

@ -7680,6 +7680,12 @@ void Worker::CountZoneStatistics( ZoneEvent* zone )
auto cnt = GetSourceLocationZonesCnt( zone->SrcLoc() );
(*cnt)++;
}
void Worker::CountZoneStatistics( GpuEvent* zone )
{
auto cnt = GetGpuSourceLocationZonesCnt( zone->SrcLoc() );
(*cnt)++;
}
#endif
int64_t Worker::ReadTimeline( FileRead& f, Vector<short_ptr<ZoneEvent>>& _vec, uint32_t size, int64_t refTime, int32_t& childIdx )

View File

@ -906,6 +906,7 @@ private:
tracy_force_inline void ReconstructZoneStatistics( uint8_t* countMap, ZoneEvent& zone, uint16_t thread );
#else
tracy_force_inline void CountZoneStatistics( ZoneEvent* zone );
tracy_force_inline void CountZoneStatistics( GpuEvent* zone );
#endif
tracy_force_inline ZoneExtra& GetZoneExtraMutable( const ZoneEvent& ev ) { return m_data.zoneExtra[ev.extra]; }