mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
There can be many locks with the same name, print id.
This commit is contained in:
parent
956bcb9b17
commit
4accd9ae8f
@ -1554,7 +1554,9 @@ int View::DrawLocks( uint64_t tid, bool hover, double pxns, const ImVec2& wpos,
|
|||||||
|
|
||||||
if( drawn )
|
if( drawn )
|
||||||
{
|
{
|
||||||
draw->AddText( wpos + ImVec2( 0, offset ), 0xFF8888FF, GetString( srcloc.function ) );
|
char buf[1024];
|
||||||
|
sprintf( buf, "%" PRIu64 ": %s", v.first, GetString( srcloc.function ) );
|
||||||
|
draw->AddText( wpos + ImVec2( 0, offset ), 0xFF8888FF, buf );
|
||||||
cnt++;
|
cnt++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user