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

Allow partial load of data from dump.

This commit is contained in:
Bartosz Taudul
2018-04-20 16:03:09 +02:00
parent cc65e52663
commit 84fd351fba
2 changed files with 149 additions and 76 deletions
+15 -1
View File
@@ -23,6 +23,20 @@ namespace tracy
class FileRead;
class FileWrite;
namespace EventType
{
enum Type : uint32_t
{
Locks = 1 << 0,
Messages = 1 << 1,
Plots = 1 << 2,
Memory = 1 << 3,
None = 0,
All = std::numeric_limits<uint32_t>::max()
};
}
class Worker
{
#pragma pack( 1 )
@@ -91,7 +105,7 @@ class Worker
public:
Worker( const char* addr );
Worker( FileRead& f );
Worker( FileRead& f, EventType::Type eventMask = EventType::All );
~Worker();
const std::string& GetAddr() const { return m_addr; }