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

Assign messages to threads.

This commit is contained in:
Bartosz Taudul
2017-10-14 14:46:03 +02:00
parent 3ba349565a
commit 317b23c7c3
2 changed files with 43 additions and 16 deletions
+13 -12
View File
@@ -38,11 +38,24 @@ public:
static void Draw();
private:
struct MessagePending
{
int64_t time;
uint64_t thread;
};
struct MessageData
{
int64_t time;
const char* txt;
};
struct ThreadData
{
uint64_t id;
bool enabled;
Vector<Event*> timeline;
Vector<MessageData*> messages;
};
struct LockMap
@@ -77,18 +90,6 @@ private:
std::vector<PlotItem> data;
};
struct MessagePending
{
int64_t time;
uint64_t thread;
};
struct MessageData
{
int64_t time;
const char* txt;
};
void Worker();
void DispatchProcess( const QueueItem& ev );