There can be many locks with the same name, print id.

This commit is contained in:
Bartosz Taudul 2017-10-05 02:46:35 +02:00
parent 956bcb9b17
commit 4accd9ae8f

View File

@ -1554,7 +1554,9 @@ int View::DrawLocks( uint64_t tid, bool hover, double pxns, const ImVec2& wpos,
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++;
}
}