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

Add "import data" constructor to Worker.

This commit is contained in:
Bartosz Taudul
2019-12-16 18:55:02 +01:00
parent 95af214abe
commit ced47f227c
2 changed files with 126 additions and 0 deletions
+16
View File
@@ -86,6 +86,21 @@ struct LoadProgress
class Worker
{
public:
struct ImportEventTimeline
{
uint64_t tid;
uint64_t timestamp;
std::string name;
bool isEnd;
};
struct ImportEventMessages
{
uint64_t tid;
uint64_t timestamp;
std::string message;
};
#pragma pack( 1 )
struct ZoneThreadData
{
@@ -296,6 +311,7 @@ public:
};
Worker( const char* addr, int port );
Worker( const std::string& program, const std::vector<ImportEventTimeline>& timeline, const std::vector<ImportEventMessages>& messages );
Worker( FileRead& f, EventType::Type eventMask = EventType::All, bool bgTasks = true );
~Worker();