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

Add sub progress display.

This commit is contained in:
Bartosz Taudul
2018-07-28 18:56:52 +02:00
parent 3a401106b0
commit a14238c199
3 changed files with 16 additions and 0 deletions
+1
View File
@@ -253,6 +253,7 @@ Worker::Worker( FileRead& f, EventType::Type eventMask )
s_loadProgress.total.store( 8, std::memory_order_relaxed );
}
s_loadProgress.subTotal.store( 0, std::memory_order_relaxed );
s_loadProgress.progress.store( 0, std::memory_order_relaxed );
f.Read( m_resolution );
f.Read( m_timerMul );
+2
View File
@@ -49,6 +49,8 @@ struct LoadProgress
{
std::atomic<uint64_t> total = 0;
std::atomic<uint64_t> progress = 0;
std::atomic<uint64_t> subTotal = 0;
std::atomic<uint64_t> subProgress = 0;
};
class Worker