Display thread kernel time.

This commit is contained in:
Bartosz Taudul 2021-06-17 01:56:16 +02:00
parent d49da69972
commit a96410547b
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -3526,6 +3526,12 @@ void View::DrawZones()
if( !v->samples.empty() ) if( !v->samples.empty() )
{ {
TextFocused( "Call stack samples:", RealToString( v->samples.size() ) ); TextFocused( "Call stack samples:", RealToString( v->samples.size() ) );
if( v->kernelSampleCnt != 0 )
{
TextFocused( "Kernel samples:", RealToString( v->kernelSampleCnt ) );
ImGui::SameLine();
ImGui::TextDisabled( "(%.2f%%)", 100.f * v->kernelSampleCnt / v->samples.size() );
}
} }
ImGui::EndTooltip(); ImGui::EndTooltip();