Integrate the MicroProfile profiling library
This brings goodies such as a configurable user interface and multi-threaded timeline view.
This commit is contained in:
parent
2436b1c104
commit
424b0fa646
24 changed files with 11142 additions and 0 deletions
|
@ -4,6 +4,7 @@
|
|||
|
||||
#include <boost/range/algorithm/fill.hpp>
|
||||
|
||||
#include "common/microprofile.h"
|
||||
#include "common/profiler.h"
|
||||
|
||||
#include "core/hle/service/gsp_gpu.h"
|
||||
|
@ -43,6 +44,8 @@ static const u32 expand_bits_to_bytes[] = {
|
|||
0xffff0000, 0xffff00ff, 0xffffff00, 0xffffffff
|
||||
};
|
||||
|
||||
MICROPROFILE_DEFINE(GPU_Drawing, "GPU", "Drawing", MP_RGB(50, 50, 240));
|
||||
|
||||
static void WritePicaReg(u32 id, u32 value, u32 mask) {
|
||||
auto& regs = g_state.regs;
|
||||
|
||||
|
@ -126,6 +129,7 @@ static void WritePicaReg(u32 id, u32 value, u32 mask) {
|
|||
case PICA_REG_INDEX(trigger_draw_indexed):
|
||||
{
|
||||
Common::Profiling::ScopeTimer scope_timer(category_drawing);
|
||||
MICROPROFILE_SCOPE(GPU_Drawing);
|
||||
|
||||
#if PICA_LOG_TEV
|
||||
DebugUtils::DumpTevStageConfig(regs.GetTevStages());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue