From cee712105850ac3385cd0091a923438167433f9f Mon Sep 17 00:00:00 2001
From: TSR Berry <20988865+TSRBerry@users.noreply.github.com>
Date: Sat, 8 Apr 2023 01:22:00 +0200
Subject: Move solution and projects to src
---
.../Performance/PerformanceDetailVersion1.cs | 72 ++++++++++++++++++++++
1 file changed, 72 insertions(+)
create mode 100644 src/Ryujinx.Audio/Renderer/Server/Performance/PerformanceDetailVersion1.cs
(limited to 'src/Ryujinx.Audio/Renderer/Server/Performance/PerformanceDetailVersion1.cs')
diff --git a/src/Ryujinx.Audio/Renderer/Server/Performance/PerformanceDetailVersion1.cs b/src/Ryujinx.Audio/Renderer/Server/Performance/PerformanceDetailVersion1.cs
new file mode 100644
index 00000000..22704c0d
--- /dev/null
+++ b/src/Ryujinx.Audio/Renderer/Server/Performance/PerformanceDetailVersion1.cs
@@ -0,0 +1,72 @@
+using Ryujinx.Audio.Renderer.Common;
+using System.Runtime.InteropServices;
+
+namespace Ryujinx.Audio.Renderer.Server.Performance
+{
+ ///
+ /// Implementation of for performance metrics version 1.
+ ///
+ [StructLayout(LayoutKind.Sequential, Pack = 1, Size = 0x10)]
+ public struct PerformanceDetailVersion1 : IPerformanceDetailEntry
+ {
+ ///
+ /// The node id associated to this detailed entry.
+ ///
+ public int NodeId;
+
+ ///
+ /// The start time (in microseconds) associated to this detailed entry.
+ ///
+ public int StartTime;
+
+ ///
+ /// The processing time (in microseconds) associated to this detailed entry.
+ ///
+ public int ProcessingTime;
+
+ ///
+ /// The detailed entry type associated to this detailed entry.
+ ///
+ public PerformanceDetailType DetailType;
+
+ ///
+ /// The entry type associated to this detailed entry.
+ ///
+ public PerformanceEntryType EntryType;
+
+ public int GetProcessingTime()
+ {
+ return ProcessingTime;
+ }
+
+ public int GetProcessingTimeOffset()
+ {
+ return 8;
+ }
+
+ public int GetStartTime()
+ {
+ return StartTime;
+ }
+
+ public int GetStartTimeOffset()
+ {
+ return 4;
+ }
+
+ public void SetDetailType(PerformanceDetailType detailType)
+ {
+ DetailType = detailType;
+ }
+
+ public void SetEntryType(PerformanceEntryType type)
+ {
+ EntryType = type;
+ }
+
+ public void SetNodeId(int nodeId)
+ {
+ NodeId = nodeId;
+ }
+ }
+}
\ No newline at end of file
--
cgit v1.2.3