mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Standard way of string reference storage in SourceLocation.
StringRef::isptr was changed to isidx, as initialization of empty SourceLocation zeroes the struct.
This commit is contained in:
@@ -140,7 +140,7 @@ private:
|
||||
void AddThreadString( uint64_t id, 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 AddSourceLocationPayload( uint64_t ptr, char* data, size_t sz );
|
||||
void AddMessageData( uint64_t ptr, char* str, size_t sz );
|
||||
|
||||
StringLocation StoreString( char* str, size_t sz );
|
||||
@@ -191,9 +191,6 @@ private:
|
||||
|
||||
void HandleZoneViewMouse( int64_t timespan, const ImVec2& wpos, float w, double& pxns );
|
||||
|
||||
const char* GetSrcLocFunction( const SourceLocation& srcloc );
|
||||
const char* GetSrcLocFile( const SourceLocation& srcloc );
|
||||
|
||||
uint32_t GetZoneColor( const ZoneEvent& ev );
|
||||
uint32_t GetZoneColor( const SourceLocation& srcloc );
|
||||
uint32_t GetZoneHighlight( const ZoneEvent& ev, bool migration );
|
||||
|
||||
Reference in New Issue
Block a user