mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Display image name, if source file is unknown.
This commit is contained in:
parent
d065d28244
commit
5675044443
@ -14624,8 +14624,16 @@ void View::DrawFrameTreeLevel( const unordered_flat_map<uint64_t, CallstackFrame
|
|||||||
{
|
{
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
}
|
}
|
||||||
const auto fileName = m_worker.GetString( frame.file );
|
const char* fileName = nullptr;
|
||||||
ImGui::TextDisabled( "%s:%i", fileName, frame.line );
|
if( frame.line == 0 )
|
||||||
|
{
|
||||||
|
ImGui::TextDisabled( m_worker.GetString( frameDataPtr->imageName ) );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
fileName = m_worker.GetString( frame.file );
|
||||||
|
ImGui::TextDisabled( "%s:%i", fileName, frame.line );
|
||||||
|
}
|
||||||
if( ImGui::IsItemClicked( 1 ) )
|
if( ImGui::IsItemClicked( 1 ) )
|
||||||
{
|
{
|
||||||
if( !SetTextEditorFile( fileName, frame.line, frame.symAddr ) )
|
if( !SetTextEditorFile( fileName, frame.line, frame.symAddr ) )
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user