Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf.pld@gmail.com>2019-08-16 20:49:16 +0300
committerBartosz Taudul <wolf.pld@gmail.com>2019-08-16 20:49:16 +0300
commite975c4d7bf73b3900e0fbf52f1511d185adbc9ef (patch)
treea439fab65a29c6f3df4482c51f7aca76437ca5c0 /server/TracyWorker.hpp
parent134a8c5d2a2d28d68c75b121488c0089af96fdec (diff)
Also retrieve external thread names.
Diffstat (limited to 'server/TracyWorker.hpp')
-rw-r--r--server/TracyWorker.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/TracyWorker.hpp b/server/TracyWorker.hpp
index 330fe8e8..606f5b9d 100644
--- a/server/TracyWorker.hpp
+++ b/server/TracyWorker.hpp
@@ -173,7 +173,7 @@ private:
Vector<const char*> stringData;
flat_hash_map<charutil::StringKey, uint32_t, charutil::StringKey::HasherPOT, charutil::StringKey::Comparator> stringMap;
flat_hash_map<uint64_t, const char*, nohash<uint64_t>> threadNames;
- flat_hash_map<uint64_t, const char*, nohash<uint64_t>> externalNames;
+ flat_hash_map<uint64_t, std::pair<const char*, const char*>, nohash<uint64_t>> externalNames;
flat_hash_map<uint64_t, SourceLocation, nohash<uint64_t>> sourceLocation;
Vector<SourceLocation*> sourceLocationPayload;
@@ -335,7 +335,7 @@ public:
const char* GetThreadString( uint64_t id ) const;
bool IsThreadLocal( uint64_t id ) const;
const SourceLocation& GetSourceLocation( int16_t srcloc ) const;
- const char* GetExternalName( uint64_t id ) const;
+ std::pair<const char*, const char*> GetExternalName( uint64_t id ) const;
const char* GetZoneName( const SourceLocation& srcloc ) const;
const char* GetZoneName( const ZoneEvent& ev ) const;
@@ -488,6 +488,7 @@ private:
void AddThreadString( uint64_t id, char* str, size_t sz );
void AddCustomString( uint64_t ptr, char* str, size_t sz );
void AddExternalName( uint64_t ptr, char* str, size_t sz );
+ void AddExternalThreadName( uint64_t ptr, char* str, size_t sz );
void AddFrameImageData( uint64_t ptr, char* data, size_t sz );
tracy_force_inline void AddCallstackPayload( uint64_t ptr, char* data, size_t sz );