mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00:00
Common: Add a built-in profiler
This commit is contained in:
parent
e40f129fdd
commit
94d9d138d9
9 changed files with 236 additions and 0 deletions
|
@ -8,6 +8,7 @@
|
|||
#include <strsafe.h>
|
||||
#include <unordered_map>
|
||||
|
||||
#include "Common/Profiler.h"
|
||||
#include "Common/Timer.h"
|
||||
|
||||
#include "Core/ConfigManager.h"
|
||||
|
@ -876,6 +877,12 @@ void Renderer::SwapImpl(u32 xfbAddr, u32 fbWidth, u32 fbStride, u32 fbHeight, co
|
|||
D3D::font.DrawTextScaled(0, 36, 20, 0.0f, 0xFF00FFFF, Statistics::ToStringProj());
|
||||
}
|
||||
|
||||
std::string profile_output = Profiler::ToString();
|
||||
if (!profile_output.empty())
|
||||
{
|
||||
D3D::font.DrawTextScaled(0, 44, 20, 0.0f, 0xFF00FFFF, profile_output);
|
||||
}
|
||||
|
||||
OSD::DrawMessages();
|
||||
D3D::EndFrame();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue