diff options
author | Bartosz Taudul <wolf@nereid.pl> | 2022-08-16 16:22:28 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf@nereid.pl> | 2022-08-16 23:05:08 +0300 |
commit | d32dc4784598ef4cf5508e9a4d69a81c17a6cf86 (patch) | |
tree | e3457601d9b6c50a73ae8d79431ba779070978cf /public | |
parent | ed733a4b15cc7d5c15f4ff03c343611560a968b3 (diff) |
Add debug logging for debuginfod queries.
Diffstat (limited to 'public')
-rw-r--r-- | public/client/TracyCallstack.cpp | 1 | ||||
-rw-r--r-- | public/client/TracyProfiler.cpp | 2 |
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; |