mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 07:54:36 +00:00
Add debug logging for debuginfod queries.
This commit is contained in:
parent
ed733a4b15
commit
d32dc47845
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user