Skip internal call stack capture inline frames for MSVC.

This commit is contained in:
Bartosz Taudul 2019-02-04 02:27:13 +01:00
parent 9dd869a5eb
commit 4dc05195ca

View File

@ -6567,6 +6567,18 @@ void View::DrawCallstackWindow()
for( uint8_t f=0; f<fsz; f++ ) for( uint8_t f=0; f<fsz; f++ )
{ {
const auto& frame = frameData->data[f]; const auto& frame = frameData->data[f];
auto txt = m_worker.GetString( frame.name );
if( fidx == 0 && f != fsz-1 )
{
if( strcmp( txt, "tracy::Callstack" ) == 0 ||
strcmp( txt, "tracy::Profiler::SendCallstack" ) == 0 ||
strcmp( txt, "tracy::ScopedZone::{ctor}" ) == 0 )
{
continue;
}
}
bidx++; bidx++;
ImGui::Separator(); ImGui::Separator();
@ -6580,7 +6592,6 @@ void View::DrawCallstackWindow()
} }
ImGui::NextColumn(); ImGui::NextColumn();
auto txt = m_worker.GetString( frame.name );
ImGui::TextWrapped( "%s", txt ); ImGui::TextWrapped( "%s", txt );
if( ImGui::IsItemClicked() ) if( ImGui::IsItemClicked() )
{ {