From 2610004fa5a78352199ee9eef4a0fd19b1e9bae2 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 22 Sep 2017 01:58:59 +0200 Subject: [PATCH] Store thread id in thread data. --- server/TracyView.cpp | 2 +- server/TracyView.hpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index dee118bc..33a24e73 100755 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -350,7 +350,7 @@ void View::NewZone( Event* zone, uint64_t thread ) if( it == m_threadMap.end() ) { m_threadMap.emplace( thread, m_threads.size() ); - m_threads.emplace_back(); + m_threads.emplace_back( ThreadData { thread } ); timeline = &m_threads.back().timeline; } else diff --git a/server/TracyView.hpp b/server/TracyView.hpp index 0b76cca7..5867ba71 100755 --- a/server/TracyView.hpp +++ b/server/TracyView.hpp @@ -35,6 +35,7 @@ public: private: struct ThreadData { + uint64_t id; Vector timeline; };