From 913b7a6872a67a0dd689bb19bc4ecfef7fb9cdcd Mon Sep 17 00:00:00 2001 From: Fernando Sahmkow Date: Tue, 9 Jul 2019 21:27:27 -0400 Subject: GPU: Add a microprofile for macro interpreter --- src/video_core/macro_interpreter.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/video_core/macro_interpreter.cpp') diff --git a/src/video_core/macro_interpreter.cpp b/src/video_core/macro_interpreter.cpp index c766ed692..9f59a2dc1 100644 --- a/src/video_core/macro_interpreter.cpp +++ b/src/video_core/macro_interpreter.cpp @@ -4,14 +4,18 @@ #include "common/assert.h" #include "common/logging/log.h" +#include "common/microprofile.h" #include "video_core/engines/maxwell_3d.h" #include "video_core/macro_interpreter.h" +MICROPROFILE_DEFINE(MacroInterp, "GPU", "Execute macro interpreter", MP_RGB(128, 128, 192)); + namespace Tegra { MacroInterpreter::MacroInterpreter(Engines::Maxwell3D& maxwell3d) : maxwell3d(maxwell3d) {} void MacroInterpreter::Execute(u32 offset, std::vector parameters) { + MICROPROFILE_SCOPE(MacroInterp); Reset(); registers[1] = parameters[0]; this->parameters = std::move(parameters); -- cgit v1.2.3