aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Services/IpcService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.HLE/HOS/Services/IpcService.cs')
-rw-r--r--Ryujinx.HLE/HOS/Services/IpcService.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/Ryujinx.HLE/HOS/Services/IpcService.cs b/Ryujinx.HLE/HOS/Services/IpcService.cs
index 2a4a9319..b93c8422 100644
--- a/Ryujinx.HLE/HOS/Services/IpcService.cs
+++ b/Ryujinx.HLE/HOS/Services/IpcService.cs
@@ -6,6 +6,7 @@ using Ryujinx.HLE.HOS.Kernel.Ipc;
using System;
using System.Collections.Generic;
using System.IO;
+using Ryujinx.Profiler;
namespace Ryujinx.HLE.HOS.Services
{
@@ -101,7 +102,13 @@ namespace Ryujinx.HLE.HOS.Services
{
Logger.PrintDebug(LogClass.KernelIpc, $"{service.GetType().Name}: {processRequest.Method.Name}");
+ ProfileConfig profile = Profiles.ServiceCall;
+ profile.SessionGroup = service.GetType().Name;
+ profile.SessionItem = processRequest.Method.Name;
+
+ Profile.Begin(profile);
result = processRequest(context);
+ Profile.End(profile);
}
else
{
@@ -203,4 +210,4 @@ namespace Ryujinx.HLE.HOS.Services
return _domainObjects.GetData<IIpcService>(id);
}
}
-} \ No newline at end of file
+}