mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Sort source location zones on a separate thread.
This commit is contained in:
@@ -93,6 +93,7 @@ class Worker
|
||||
Vector<uint64_t> sourceLocationExpand;
|
||||
#ifndef TRACY_NO_STATISTICS
|
||||
flat_hash_map<int32_t, SourceLocationZones, nohash<int32_t>> sourceLocationZones;
|
||||
bool sourceLocationZonesReady;
|
||||
#endif
|
||||
|
||||
std::map<uint32_t, LockMap> lockMap;
|
||||
@@ -157,6 +158,7 @@ public:
|
||||
#ifndef TRACY_NO_STATISTICS
|
||||
const SourceLocationZones& GetZonesForSourceLocation( int32_t srcloc ) const;
|
||||
const flat_hash_map<int32_t, SourceLocationZones, nohash<int32_t>>& GetSourceLocationZones() const { return m_data.sourceLocationZones; }
|
||||
bool AreSourceLocationZonesReady() const { return m_data.sourceLocationZonesReady; }
|
||||
#endif
|
||||
|
||||
tracy_force_inline uint16_t CompressThread( uint64_t thread );
|
||||
@@ -254,11 +256,13 @@ private:
|
||||
Socket m_sock;
|
||||
std::string m_addr;
|
||||
|
||||
std::thread m_thread, m_loadThread;
|
||||
std::thread m_thread;
|
||||
std::atomic<bool> m_connected;
|
||||
std::atomic<bool> m_hasData;
|
||||
std::atomic<bool> m_shutdown;
|
||||
|
||||
std::thread m_threadMemory, m_threadZones;
|
||||
|
||||
int64_t m_delay;
|
||||
int64_t m_resolution;
|
||||
double m_timerMul;
|
||||
|
||||
Reference in New Issue
Block a user