mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-30 09:14:36 +00:00
Add another percent print helper.
This commit is contained in:
parent
c5e8739435
commit
e438e1c53d
@ -6640,6 +6640,13 @@ static tracy_force_inline void PrintStringPercent( char* buf, const char* string
|
|||||||
memcpy( end, "%)", 3 );
|
memcpy( end, "%)", 3 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static tracy_force_inline void PrintStringPercent( char* buf, double percent )
|
||||||
|
{
|
||||||
|
memcpy( buf, "(", 2 );
|
||||||
|
auto end = PrintFloat( buf+1, buf+64, percent, 2 );
|
||||||
|
memcpy( end, "%)", 3 );
|
||||||
|
}
|
||||||
|
|
||||||
template<typename Adapter, typename V>
|
template<typename Adapter, typename V>
|
||||||
void View::DrawZoneInfoChildren( const V& children, int64_t ztime )
|
void View::DrawZoneInfoChildren( const V& children, int64_t ztime )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user