mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-29 08:54:34 +00:00
Calculate CPU data percentages relative to active time span.
This commit is contained in:
parent
2f49caaa6e
commit
fc7bd61576
@ -525,7 +525,7 @@ void View::DrawCpuDataWindow()
|
|||||||
}
|
}
|
||||||
|
|
||||||
const auto thisPid = m_worker.GetPid();
|
const auto thisPid = m_worker.GetPid();
|
||||||
const auto rtimespan = 1.0 / m_worker.GetLastTime();
|
const auto rtimespan = 1.0 / ( m_worker.GetLastTime() - m_worker.GetFirstTime() );
|
||||||
const auto ty = ImGui::GetTextLineHeight();
|
const auto ty = ImGui::GetTextLineHeight();
|
||||||
|
|
||||||
auto& style = ImGui::GetStyle();
|
auto& style = ImGui::GetStyle();
|
||||||
|
Loading…
Reference in New Issue
Block a user