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:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user