mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-14 04:01: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() );
|
auto cnt = GetSourceLocationZonesCnt( zone->SrcLoc() );
|
||||||
(*cnt)++;
|
(*cnt)++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Worker::CountZoneStatistics( GpuEvent* zone )
|
||||||
|
{
|
||||||
|
auto cnt = GetGpuSourceLocationZonesCnt( zone->SrcLoc() );
|
||||||
|
(*cnt)++;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int64_t Worker::ReadTimeline( FileRead& f, Vector<short_ptr<ZoneEvent>>& _vec, uint32_t size, int64_t refTime, int32_t& childIdx )
|
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 );
|
tracy_force_inline void ReconstructZoneStatistics( uint8_t* countMap, ZoneEvent& zone, uint16_t thread );
|
||||||
#else
|
#else
|
||||||
tracy_force_inline void CountZoneStatistics( ZoneEvent* zone );
|
tracy_force_inline void CountZoneStatistics( ZoneEvent* zone );
|
||||||
|
tracy_force_inline void CountZoneStatistics( GpuEvent* zone );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
tracy_force_inline ZoneExtra& GetZoneExtraMutable( const ZoneEvent& ev ) { return m_data.zoneExtra[ev.extra]; }
|
tracy_force_inline ZoneExtra& GetZoneExtraMutable( const ZoneEvent& ev ) { return m_data.zoneExtra[ev.extra]; }
|
||||||
|
Loading…
Reference in New Issue
Block a user