mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Check string availability.
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include <string>
|
||||
#include <thread>
|
||||
#include <unordered_map>
|
||||
#include <unordered_set>
|
||||
#include <vector>
|
||||
|
||||
#include "../common/TracySocket.hpp"
|
||||
@@ -33,6 +34,8 @@ private:
|
||||
void ProcessZoneBegin( uint64_t id, const QueueZoneBegin& ev );
|
||||
void ProcessZoneEnd( uint64_t id, const QueueZoneEnd& ev );
|
||||
|
||||
void CheckString( uint64_t ptr );
|
||||
|
||||
std::string m_addr;
|
||||
|
||||
Socket m_sock;
|
||||
@@ -44,10 +47,12 @@ private:
|
||||
std::mutex m_lock;
|
||||
std::vector<Event> m_data;
|
||||
std::vector<uint64_t> m_timeline;
|
||||
std::unordered_map<uint64_t, std::string> m_strings;
|
||||
|
||||
// not used for vis - no need to lock
|
||||
std::unordered_map<uint64_t, QueueZoneEnd> m_pendingEndZone;
|
||||
std::unordered_map<uint64_t, uint64_t> m_openZones;
|
||||
std::unordered_set<uint64_t> m_pendingStrings;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user