Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorBartosz Taudul <wolf@nereid.pl>2022-08-16 16:22:28 +0300
committerBartosz Taudul <wolf@nereid.pl>2022-08-16 23:05:08 +0300
commitd32dc4784598ef4cf5508e9a4d69a81c17a6cf86 (patch)
treee3457601d9b6c50a73ae8d79431ba779070978cf /public
parented733a4b15cc7d5c15f4ff03c343611560a968b3 (diff)
Add debug logging for debuginfod queries.
Diffstat (limited to 'public')
-rw-r--r--public/client/TracyCallstack.cpp1
-rw-r--r--public/client/TracyProfiler.cpp2
2 files changed, 3 insertions, 0 deletions
diff --git a/public/client/TracyCallstack.cpp b/public/client/TracyCallstack.cpp
index 6560de33..a8d9b6f5 100644
--- a/public/client/TracyCallstack.cpp
+++ b/public/client/TracyCallstack.cpp
@@ -755,6 +755,7 @@ int GetDebugInfoDescriptor( const char* buildid_data, size_t buildid_size, const
it->filename = (char*)tracy_malloc( fnsz );
memcpy( it->filename, filename, fnsz );
it->fd = fd >= 0 ? fd : -1;
+ TracyDebug( "DebugInfo descriptor query: %i, fn: %s\n", fd, filename );
return it->fd;
}
diff --git a/public/client/TracyProfiler.cpp b/public/client/TracyProfiler.cpp
index f48f96e2..e2e53b87 100644
--- a/public/client/TracyProfiler.cpp
+++ b/public/client/TracyProfiler.cpp
@@ -64,6 +64,7 @@
#include "../common/tracy_lz4.hpp"
#include "tracy_rpmalloc.hpp"
#include "TracyCallstack.hpp"
+#include "TracyDebug.hpp"
#include "TracyDxt1.hpp"
#include "TracyScoped.hpp"
#include "TracyProfiler.hpp"
@@ -3854,6 +3855,7 @@ void Profiler::HandleSourceCodeQuery()
if( buildid )
{
auto d = debuginfod_find_source( GetDebuginfodClient(), buildid, size, m_queryData, nullptr );
+ TracyDebug( "DebugInfo source query: %s, fn: %s, image: %s\n", d >= 0 ? " ok " : "fail", m_queryData, m_queryImage );
if( d >= 0 )
{
struct stat st;