diff options
author | Bartosz Taudul <wolf.pld@gmail.com> | 2019-08-15 18:42:26 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf.pld@gmail.com> | 2019-08-15 21:15:48 +0300 |
commit | 659907c972fcbbeac40bc619e8912f0634d41aa2 (patch) | |
tree | 1362f309edb81dc04b029c5e4cac025f4f59165b /server/TracyView.cpp | |
parent | 416113fdcb0b2441aadeb5d98a810415a18cb89f (diff) |
Store srcloc identifiers using 16 bit.
This reduces various structure sizes by 2 bytes. Memory usage reduction
on various traces:
big 11 GB -> 10.62 GB
chicken 2436 MB -> 2342 MB
drl-light-big 1761 MB -> 1706 MB
q3bsp-mt 6469 MB -> 6277 MB
Diffstat (limited to 'server/TracyView.cpp')
-rw-r--r-- | server/TracyView.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/server/TracyView.cpp b/server/TracyView.cpp index c5bf3873..eefc86dc 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -3571,7 +3571,7 @@ int View::DrawLocks( uint64_t tid, bool hover, double pxns, const ImVec2& wpos, TextFocused( "Time:", TimeToString( t1 - t0 ) ); ImGui::Separator(); - uint32_t markloc = 0; + int16_t markloc = 0; auto it = vbegin; for(;;) { @@ -5056,12 +5056,12 @@ void View::DrawZoneInfoWindow() { struct ChildGroup { - int32_t srcloc; + int16_t srcloc; uint64_t t; Vector<uint32_t> v; }; uint64_t ctime = 0; - flat_hash_map<int32_t, ChildGroup, nohash<int32_t>> cmap; + flat_hash_map<int16_t, ChildGroup, nohash<int16_t>> cmap; cmap.reserve( 128 ); for( size_t i=0; i<children.size(); i++ ) { @@ -5466,12 +5466,12 @@ void View::DrawGpuInfoWindow() { struct ChildGroup { - int32_t srcloc; + int16_t srcloc; uint64_t t; Vector<uint32_t> v; }; uint64_t ctime = 0; - flat_hash_map<int32_t, ChildGroup, nohash<int32_t>> cmap; + flat_hash_map<int16_t, ChildGroup, nohash<int16_t>> cmap; cmap.reserve( 128 ); for( size_t i=0; i<children.size(); i++ ) { |