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

Move saving trace dump to a separate thread.

This commit is contained in:
Bartosz Taudul
2019-05-28 19:56:18 +02:00
parent 845f3a2ddf
commit c93170cd42
2 changed files with 39 additions and 7 deletions
+10
View File
@@ -316,6 +316,16 @@ private:
bool m_activeOnlyBottomUp = false;
bool m_activeOnlyTopDown = false;
enum class SaveThreadState
{
Inert,
Saving,
NeedsJoin
};
SaveThreadState m_saveThreadState = SaveThreadState::Inert;
std::thread m_saveThread;
struct FindZone {
enum : uint64_t { Unselected = std::numeric_limits<uint64_t>::max() - 1 };
enum class GroupBy : int { Thread, UserText, Callstack };