mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-29 16:54:35 +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 );
|
it->filename = (char*)tracy_malloc( fnsz );
|
||||||
memcpy( it->filename, filename, fnsz );
|
memcpy( it->filename, filename, fnsz );
|
||||||
it->fd = fd >= 0 ? fd : -1;
|
it->fd = fd >= 0 ? fd : -1;
|
||||||
|
TracyDebug( "DebugInfo descriptor query: %i, fn: %s\n", fd, filename );
|
||||||
return it->fd;
|
return it->fd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -64,6 +64,7 @@
|
|||||||
#include "../common/tracy_lz4.hpp"
|
#include "../common/tracy_lz4.hpp"
|
||||||
#include "tracy_rpmalloc.hpp"
|
#include "tracy_rpmalloc.hpp"
|
||||||
#include "TracyCallstack.hpp"
|
#include "TracyCallstack.hpp"
|
||||||
|
#include "TracyDebug.hpp"
|
||||||
#include "TracyDxt1.hpp"
|
#include "TracyDxt1.hpp"
|
||||||
#include "TracyScoped.hpp"
|
#include "TracyScoped.hpp"
|
||||||
#include "TracyProfiler.hpp"
|
#include "TracyProfiler.hpp"
|
||||||
@ -3854,6 +3855,7 @@ void Profiler::HandleSourceCodeQuery()
|
|||||||
if( buildid )
|
if( buildid )
|
||||||
{
|
{
|
||||||
auto d = debuginfod_find_source( GetDebuginfodClient(), buildid, size, m_queryData, nullptr );
|
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 )
|
if( d >= 0 )
|
||||||
{
|
{
|
||||||
struct stat st;
|
struct stat st;
|
||||||
|
Loading…
Reference in New Issue
Block a user