Engine 3d call method profiled

This commit is contained in:
Andy Adshead 2019-02-02 06:35:09 +00:00
commit 11e62d1ca5
2 changed files with 12 additions and 0 deletions

View file

@ -82,7 +82,13 @@ namespace Ryujinx.Graphics.Graphics3d
{ {
if (Methods.TryGetValue(MethCall.Method, out NvGpuMethod Method)) if (Methods.TryGetValue(MethCall.Method, out NvGpuMethod Method))
{ {
ProfileConfig profile = Profiles.GPU.Engine3d.CallMethod;
profile.SessionItem = Method.Method.Name;
Profile.Begin(profile);
Method(Vmm, MethCall); Method(Vmm, MethCall);
Profile.End(profile);
} }
else else
{ {

View file

@ -105,6 +105,12 @@ namespace Ryujinx.Profiler
public static class Engine3d public static class Engine3d
{ {
public static ProfileConfig CallMethod = new ProfileConfig()
{
Category = "GPU.Engine3D",
SessionGroup = "CallMethod",
};
public static ProfileConfig VertexEnd = new ProfileConfig() public static ProfileConfig VertexEnd = new ProfileConfig()
{ {
Category = "GPU.Engine3D", Category = "GPU.Engine3D",