mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-29 08:54:34 +00:00
Pass function names to ViewSource() calls.
This commit is contained in:
parent
4757d101fc
commit
680174685b
@ -367,7 +367,7 @@ void View::DrawFindZone()
|
|||||||
{
|
{
|
||||||
if( SourceFileValid( fileName, m_worker.GetCaptureTime(), *this, m_worker ) )
|
if( SourceFileValid( fileName, m_worker.GetCaptureTime(), *this, m_worker ) )
|
||||||
{
|
{
|
||||||
ViewSource( fileName, srcloc.line );
|
ViewSourceCheckKeyMod( fileName, srcloc.line, m_worker.GetString( srcloc.function ) );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -667,7 +667,7 @@ void View::DrawStatistics()
|
|||||||
{
|
{
|
||||||
if( SourceFileValid( file, m_worker.GetCaptureTime(), *this, m_worker ) )
|
if( SourceFileValid( file, m_worker.GetCaptureTime(), *this, m_worker ) )
|
||||||
{
|
{
|
||||||
ViewSource( file, srcloc.line );
|
ViewSourceCheckKeyMod( file, srcloc.line, m_worker.GetString( srcloc.function ) );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -356,7 +356,7 @@ void View::DrawZoneInfoWindow()
|
|||||||
}
|
}
|
||||||
if( ImGui::Button( ICON_FA_FILE_LINES " Source" ) )
|
if( ImGui::Button( ICON_FA_FILE_LINES " Source" ) )
|
||||||
{
|
{
|
||||||
ViewSource( fileName, srcloc.line );
|
ViewSourceCheckKeyMod( fileName, srcloc.line, m_worker.GetString( srcloc.function ) );
|
||||||
}
|
}
|
||||||
if( hilite )
|
if( hilite )
|
||||||
{
|
{
|
||||||
@ -955,7 +955,7 @@ void View::DrawZoneInfoWindow()
|
|||||||
{
|
{
|
||||||
if( SourceFileValid( fileName, m_worker.GetCaptureTime(), *this, m_worker ) )
|
if( SourceFileValid( fileName, m_worker.GetCaptureTime(), *this, m_worker ) )
|
||||||
{
|
{
|
||||||
ViewSource( fileName, srcloc.line );
|
ViewSourceCheckKeyMod( fileName, srcloc.line, m_worker.GetString( srcloc.function ) );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -1407,7 +1407,7 @@ void View::DrawGpuInfoWindow()
|
|||||||
}
|
}
|
||||||
if( ImGui::Button( ICON_FA_FILE_LINES " Source" ) )
|
if( ImGui::Button( ICON_FA_FILE_LINES " Source" ) )
|
||||||
{
|
{
|
||||||
ViewSource( fileName, srcloc.line );
|
ViewSourceCheckKeyMod( fileName, srcloc.line, m_worker.GetString( srcloc.function ) );
|
||||||
}
|
}
|
||||||
if( hilite )
|
if( hilite )
|
||||||
{
|
{
|
||||||
@ -1527,7 +1527,7 @@ void View::DrawGpuInfoWindow()
|
|||||||
{
|
{
|
||||||
if( SourceFileValid( fileName, m_worker.GetCaptureTime(), *this, m_worker ) )
|
if( SourceFileValid( fileName, m_worker.GetCaptureTime(), *this, m_worker ) )
|
||||||
{
|
{
|
||||||
ViewSource( fileName, srcloc.line );
|
ViewSourceCheckKeyMod( fileName, srcloc.line, m_worker.GetString( srcloc.function ) );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user