mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 14:44:34 +00:00
Fix color channel names in source location message.
This commit is contained in:
parent
6652999a60
commit
d47122586c
@ -3026,9 +3026,9 @@ void Profiler::SendSourceLocation( uint64_t ptr )
|
|||||||
MemWrite( &item.srcloc.file, (uint64_t)srcloc->file );
|
MemWrite( &item.srcloc.file, (uint64_t)srcloc->file );
|
||||||
MemWrite( &item.srcloc.function, (uint64_t)srcloc->function );
|
MemWrite( &item.srcloc.function, (uint64_t)srcloc->function );
|
||||||
MemWrite( &item.srcloc.line, srcloc->line );
|
MemWrite( &item.srcloc.line, srcloc->line );
|
||||||
MemWrite( &item.srcloc.r, uint8_t( ( srcloc->color ) & 0xFF ) );
|
MemWrite( &item.srcloc.b, uint8_t( ( srcloc->color ) & 0xFF ) );
|
||||||
MemWrite( &item.srcloc.g, uint8_t( ( srcloc->color >> 8 ) & 0xFF ) );
|
MemWrite( &item.srcloc.g, uint8_t( ( srcloc->color >> 8 ) & 0xFF ) );
|
||||||
MemWrite( &item.srcloc.b, uint8_t( ( srcloc->color >> 16 ) & 0xFF ) );
|
MemWrite( &item.srcloc.r, uint8_t( ( srcloc->color >> 16 ) & 0xFF ) );
|
||||||
AppendData( &item, QueueDataSize[(int)QueueType::SourceLocation] );
|
AppendData( &item, QueueDataSize[(int)QueueType::SourceLocation] );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -222,9 +222,9 @@ struct QueueSourceLocation
|
|||||||
uint64_t function; // ptr
|
uint64_t function; // ptr
|
||||||
uint64_t file; // ptr
|
uint64_t file; // ptr
|
||||||
uint32_t line;
|
uint32_t line;
|
||||||
uint8_t r;
|
|
||||||
uint8_t g;
|
|
||||||
uint8_t b;
|
uint8_t b;
|
||||||
|
uint8_t g;
|
||||||
|
uint8_t r;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct QueueZoneTextFat
|
struct QueueZoneTextFat
|
||||||
|
@ -3725,7 +3725,7 @@ void Worker::AddSourceLocation( const QueueSourceLocation& srcloc )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
CheckString( srcloc.function );
|
CheckString( srcloc.function );
|
||||||
const uint32_t color = ( srcloc.r << 16 ) | ( srcloc.g << 8 ) | srcloc.b;
|
const uint32_t color = ( srcloc.b << 16 ) | ( srcloc.g << 8 ) | srcloc.r;
|
||||||
it->second = SourceLocation {{ srcloc.name == 0 ? StringRef() : StringRef( StringRef::Ptr, srcloc.name ), StringRef( StringRef::Ptr, srcloc.function ), StringRef( StringRef::Ptr, srcloc.file ), srcloc.line, color }};
|
it->second = SourceLocation {{ srcloc.name == 0 ? StringRef() : StringRef( StringRef::Ptr, srcloc.name ), StringRef( StringRef::Ptr, srcloc.function ), StringRef( StringRef::Ptr, srcloc.file ), srcloc.line, color }};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user