1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Cache ThreadData pointer for current thread context.

This commit is contained in:
Bartosz Taudul
2019-11-10 17:17:07 +01:00
parent ded49edf4c
commit b1c88cd1f2
2 changed files with 11 additions and 19 deletions
+1 -2
View File
@@ -275,7 +275,6 @@ public:
{
None,
ZoneStack,
ZoneEnd,
ZoneText,
ZoneName,
MemFree,
@@ -481,7 +480,6 @@ private:
tracy_force_inline void ProcessGpuZoneBeginImpl( GpuEvent* zone, const QueueGpuZoneBegin& ev, bool serial );
void ZoneStackFailure( uint64_t thread, const ZoneEvent* ev );
void ZoneEndFailure( uint64_t thread );
void ZoneTextFailure( uint64_t thread );
void ZoneNameFailure( uint64_t thread );
void MemFreeFailure( uint64_t thread );
@@ -680,6 +678,7 @@ private:
size_t m_frameImageCompressedBufferSize = 0;
uint64_t m_threadCtx = 0;
ThreadData* m_threadCtxData = nullptr;
int64_t m_refTimeThread = 0;
int64_t m_refTimeSerial = 0;
int64_t m_refTimeCtx = 0;