mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
GPU zone counting.
This commit is contained in:
parent
f1095bba12
commit
f9279afaec
@ -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 )
|
||||
|
@ -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]; }
|
||||
|
Loading…
Reference in New Issue
Block a user