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

Construct temporary in-place string.

This commit is contained in:
Bartosz Taudul
2017-11-10 19:15:00 +01:00
parent 51459d724c
commit 1baf7faf8f
2 changed files with 14 additions and 20 deletions
+3 -3
View File
@@ -123,7 +123,7 @@ private:
void Worker();
void DispatchProcess( const QueueItem& ev, const char*& ptr );
void DispatchProcess( const QueueItem& ev, char*& ptr );
void ServerQuery( uint8_t type, uint64_t data );
@@ -150,12 +150,12 @@ private:
void AddString( uint64_t ptr, std::string&& str );
void AddThreadString( uint64_t id, std::string&& str );
void AddCustomString( uint64_t ptr, const char* str, size_t sz );
void AddCustomString( uint64_t ptr, char* str, size_t sz );
void AddSourceLocation( const QueueSourceLocation& srcloc );
void AddSourceLocationPayload( uint64_t ptr, const char* data, size_t sz );
void AddMessageData( uint64_t ptr, const char* str, size_t sz );
StringLocation StoreString( const char* str, size_t sz );
StringLocation StoreString( char* str, size_t sz );
uint32_t ShrinkSourceLocation( uint64_t srcloc );