From 4accd9ae8f4a2ffc9c01b08adace880e6a06b49f Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 5 Oct 2017 02:46:35 +0200 Subject: [PATCH] There can be many locks with the same name, print id. --- server/TracyView.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 74f3675d..b5b0ceb2 100755 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -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++; } }