mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00: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();
|
||||
}
|
||||
const auto fileName = m_worker.GetString( frame.file );
|
||||
ImGui::TextDisabled( "%s:%i", fileName, frame.line );
|
||||
const char* fileName = nullptr;
|
||||
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( !SetTextEditorFile( fileName, frame.line, frame.symAddr ) )
|
||||
|
Loading…
Reference in New Issue
Block a user