Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf.pld@gmail.com>2019-08-15 21:12:09 +0300
committerBartosz Taudul <wolf.pld@gmail.com>2019-08-15 21:17:36 +0300
commitbf3ad574561355a2209eeca8fe555bd78937c76c (patch)
tree8cbe023f47c144f3e2aca28971dc5852eb9fbfd1 /server/TracyWorker.hpp
parent3e06daef312e899f099abb4a60d10a201f02426f (diff)
Pack start time and srcloc together in ZoneEvent.
This reduces ZoneEvent struct size by 2 bytes. Memory savings on various captures: 10.62 GB -> 10.29 GB 2342 MB -> 2276 MB 1706 MB -> 1635 MB 6277 MB -> 6085 MB
Diffstat (limited to 'server/TracyWorker.hpp')
-rw-r--r--server/TracyWorker.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/TracyWorker.hpp b/server/TracyWorker.hpp
index ae7f8274..57734f51 100644
--- a/server/TracyWorker.hpp
+++ b/server/TracyWorker.hpp
@@ -321,7 +321,7 @@ public:
// GetZoneEndDirect() will only return zone's direct timing data, without looking at children.
int64_t GetZoneEnd( const ZoneEvent& ev );
int64_t GetZoneEnd( const GpuEvent& ev );
- static tracy_force_inline int64_t GetZoneEndDirect( const ZoneEvent& ev ) { return ev.end >= 0 ? ev.end : ev.start; }
+ static tracy_force_inline int64_t GetZoneEndDirect( const ZoneEvent& ev ) { return ev.end >= 0 ? ev.end : ev.Start(); }
static tracy_force_inline int64_t GetZoneEndDirect( const GpuEvent& ev ) { return ev.gpuEnd >= 0 ? ev.gpuEnd : ev.gpuStart; }
const char* GetString( uint64_t ptr ) const;