mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-23 14:54:34 +00:00
Display thread kernel time.
This commit is contained in:
parent
d49da69972
commit
a96410547b
@ -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();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user