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

Improve handling of post-load background jobs.

Background tasks (source location zones sorting, reconstruction of
memory plot) are now started only after trace loading is finished.
Multithreaded sorting was previously impacting trace load times.

Only one thread is used to perform both jobs, one after another.
This commit is contained in:
Bartosz Taudul
2019-02-14 01:17:37 +01:00
parent 080873003b
commit 92c1420c30
2 changed files with 26 additions and 24 deletions
+1 -1
View File
@@ -416,7 +416,7 @@ private:
std::atomic<bool> m_hasData;
std::atomic<bool> m_shutdown = { false };
std::thread m_threadMemory, m_threadZones;
std::thread m_threadBackground;
int64_t m_delay;
int64_t m_resolution;