mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 04:23:51 +00:00
Context-sensitive auto-selection of stats mode in source view.
This commit is contained in:
parent
9d2c03bc5b
commit
f0c7a751c1
@ -53,6 +53,8 @@ public:
|
|||||||
void OpenSymbol( const char* fileName, int line, uint64_t baseAddr, uint64_t symAddr, const Worker& worker );
|
void OpenSymbol( const char* fileName, int line, uint64_t baseAddr, uint64_t symAddr, const Worker& worker );
|
||||||
void Render( const Worker& worker );
|
void Render( const Worker& worker );
|
||||||
|
|
||||||
|
void CalcInlineStats( bool val ) { m_calcInlineStats = val; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void ParseSource( const char* fileName, const Worker* worker );
|
void ParseSource( const char* fileName, const Worker* worker );
|
||||||
bool Disassemble( uint64_t symAddr, const Worker& worker );
|
bool Disassemble( uint64_t symAddr, const Worker& worker );
|
||||||
|
@ -11585,6 +11585,7 @@ void View::DrawStatistics()
|
|||||||
if( SourceFileValid( file, m_worker.GetCaptureTime() ) )
|
if( SourceFileValid( file, m_worker.GetCaptureTime() ) )
|
||||||
{
|
{
|
||||||
ViewSymbol( file, line, codeAddr, v.symAddr );
|
ViewSymbol( file, line, codeAddr, v.symAddr );
|
||||||
|
if( !m_statSeparateInlines ) m_sourceView->CalcInlineStats( false );
|
||||||
}
|
}
|
||||||
else if( symlen != 0 )
|
else if( symlen != 0 )
|
||||||
{
|
{
|
||||||
@ -11592,6 +11593,7 @@ void View::DrawStatistics()
|
|||||||
if( m_worker.GetSymbolCode( codeAddr, len ) )
|
if( m_worker.GetSymbolCode( codeAddr, len ) )
|
||||||
{
|
{
|
||||||
ViewSymbol( nullptr, 0, codeAddr, v.symAddr );
|
ViewSymbol( nullptr, 0, codeAddr, v.symAddr );
|
||||||
|
if( !m_statSeparateInlines ) m_sourceView->CalcInlineStats( false );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -11741,6 +11743,7 @@ void View::DrawStatistics()
|
|||||||
if( SourceFileValid( file, m_worker.GetCaptureTime() ) )
|
if( SourceFileValid( file, m_worker.GetCaptureTime() ) )
|
||||||
{
|
{
|
||||||
ViewSymbol( file, line, codeAddr, iv.symAddr );
|
ViewSymbol( file, line, codeAddr, iv.symAddr );
|
||||||
|
if( !m_statSeparateInlines ) m_sourceView->CalcInlineStats( true );
|
||||||
}
|
}
|
||||||
else if( symlen != 0 )
|
else if( symlen != 0 )
|
||||||
{
|
{
|
||||||
@ -11748,6 +11751,7 @@ void View::DrawStatistics()
|
|||||||
if( m_worker.GetSymbolCode( codeAddr, len ) )
|
if( m_worker.GetSymbolCode( codeAddr, len ) )
|
||||||
{
|
{
|
||||||
ViewSymbol( nullptr, 0, codeAddr, iv.symAddr );
|
ViewSymbol( nullptr, 0, codeAddr, iv.symAddr );
|
||||||
|
if( !m_statSeparateInlines ) m_sourceView->CalcInlineStats( true );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user