Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf.pld@gmail.com>2019-05-28 20:56:18 +0300
committerBartosz Taudul <wolf.pld@gmail.com>2019-05-28 20:56:18 +0300
commitc93170cd42c23eda71175832e09fe4195c9d2c55 (patch)
tree91a29bfc6279b6a02e65e07873a904625ed1d0ef /server/TracyView.hpp
parent845f3a2ddf003076216120b67d32b13452d1d5fe (diff)
Move saving trace dump to a separate thread.
Diffstat (limited to 'server/TracyView.hpp')
-rw-r--r--server/TracyView.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/server/TracyView.hpp b/server/TracyView.hpp
index 63be3cda..2bb0a928 100644
--- a/server/TracyView.hpp
+++ b/server/TracyView.hpp
@@ -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 };