Skip to content

Commit 4598c39

Browse files
author
David Kline
authored
Merge pull request #2866 from StephenHodgson/vNEXT-Diagnostics
Updated diagnostics
2 parents 45d4fb2 + f5d4b96 commit 4598c39

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

Assets/MixedRealityToolkit-SDK/Features/Diagnostics/MixedRealityDiagnosticsManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
namespace Microsoft.MixedReality.Toolkit.SDK.DiagnosticsSystem
1010
{
11-
public class MixedRealityDiagnosticsManager : MixedRealityEventManager, IMixedRealityDiagnosticsManager
11+
public class MixedRealityDiagnosticsManager : MixedRealityEventManager, IMixedRealityDiagnosticsSystem
1212
{
1313
#region IMixedRealityManager
1414
private DiagnosticsEventData eventData;

Assets/MixedRealityToolkit-SDK/Profiles/DefaultMixedRealityDiagnosticsProfile.asset

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ MonoBehaviour:
1111
m_Script: {fileID: 11500000, guid: 8c2d00f2d26cc124caed106ffbfe3f06, type: 3}
1212
m_Name: DefaultMixedRealityDiagnosticsProfile
1313
m_EditorClassIdentifier:
14+
isCustomProfile: 0
1415
showFps: 1
1516
showCpu: 1
1617
showMemory: 1

Assets/MixedRealityToolkit/_Core/Definitions/Diagnostics/MixedRealityDiagnosticsProfile.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace Microsoft.MixedReality.Toolkit.Core.Definitions.Diagnostics
1010
/// Configuration profile settings for setting up diagnostics.
1111
/// </summary>
1212
[CreateAssetMenu(menuName = "Mixed Reality Toolkit/Mixed Reality Diagnostics Profile", fileName = "MixedRealityDiagnosticsProfile", order = (int)CreateProfileMenuItemIndices.Diagnostics)]
13-
public class MixedRealityDiagnosticsProfile : ScriptableObject
13+
public class MixedRealityDiagnosticsProfile : BaseMixedRealityProfile
1414
{
1515
[SerializeField]
1616
[Tooltip("Should show fps?")]

Assets/MixedRealityToolkit/_Core/Definitions/MixedRealityConfigurationProfile.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ public bool IsDiagnosticsSystemEnabled
217217

218218
[SerializeField]
219219
[Tooltip("Diagnostics System Class to instantiate at runtime.")]
220-
[Implements(typeof(IMixedRealityDiagnosticsManager), TypeGrouping.ByNamespaceFlat)]
220+
[Implements(typeof(IMixedRealityDiagnosticsSystem), TypeGrouping.ByNamespaceFlat)]
221221
private SystemType diagnosticsSystemType;
222222

223223
/// <summary>

Assets/MixedRealityToolkit/_Core/EventDatum/Diagnostics/DiagnosticsEventData.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class DiagnosticsEventData : GenericBaseEventData
1717
public DiagnosticsEventData(EventSystem eventSystem) : base(eventSystem) { }
1818

1919
public void Initialize(
20-
IMixedRealityDiagnosticsManager diagnosticsSystem,
20+
IMixedRealityDiagnosticsSystem diagnosticsSystem,
2121
bool visible,
2222
bool showCpu,
2323
bool showFps,

Assets/MixedRealityToolkit/_Core/Interfaces/Diagnostics/IMixedRealityDiagnosticsManager.cs renamed to Assets/MixedRealityToolkit/_Core/Interfaces/Diagnostics/IMixedRealityDiagnosticsSystem.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License. See LICENSE in the project root for license information.
33

4-
using Microsoft.MixedReality.Toolkit.Core.Definitions.Diagnostics;
54
using Microsoft.MixedReality.Toolkit.Core.Interfaces.Events;
65
using UnityEngine;
76

@@ -10,7 +9,7 @@ namespace Microsoft.MixedReality.Toolkit.Core.Interfaces.Diagnostics
109
/// <summary>
1110
///
1211
/// </summary>
13-
public interface IMixedRealityDiagnosticsManager : IMixedRealityEventSystem, IMixedRealityEventSource
12+
public interface IMixedRealityDiagnosticsSystem : IMixedRealityEventSystem, IMixedRealityEventSource
1413
{
1514
/// <summary>
1615
/// Enable / disable the diagnostic display
@@ -25,7 +24,7 @@ public interface IMixedRealityDiagnosticsManager : IMixedRealityEventSystem, IMi
2524
/// <summary>
2625
/// Enable / disable fps profiling when the diagnostic panel is visible.
2726
/// </summary>
28-
bool ShowFps { get; }
27+
bool ShowFps { get; }
2928

3029
/// <summary>
3130
/// Enable / disable memory profiling when the diagnostic panel is visible.

Assets/MixedRealityToolkit/_Core/Interfaces/Diagnostics/IMixedRealityDiagnosticsManager.cs.meta renamed to Assets/MixedRealityToolkit/_Core/Interfaces/Diagnostics/IMixedRealityDiagnosticsSystem.cs.meta

File renamed without changes.

Assets/MixedRealityToolkit/_Core/Managers/MixedRealityManager.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ private void Initialize()
208208

209209
if (ActiveProfile.IsDiagnosticsSystemEnabled)
210210
{
211-
AddManager(typeof(IMixedRealityDiagnosticsManager), Activator.CreateInstance(ActiveProfile.DiagnosticsSystemSystemType) as IMixedRealityDiagnosticsManager);
211+
AddManager(typeof(IMixedRealityDiagnosticsSystem), Activator.CreateInstance(ActiveProfile.DiagnosticsSystemSystemType) as IMixedRealityDiagnosticsSystem);
212212

213213
if (DiagnosticsSystem == null)
214214
{
@@ -914,7 +914,7 @@ private bool IsCoreManagerType(Type type)
914914
return type == typeof(IMixedRealityInputSystem) ||
915915
type == typeof(IMixedRealityTeleportSystem) ||
916916
type == typeof(IMixedRealityBoundarySystem) ||
917-
type == typeof(IMixedRealityDiagnosticsManager);
917+
type == typeof(IMixedRealityDiagnosticsSystem);
918918
}
919919

920920
/// <summary>
@@ -1031,12 +1031,12 @@ private static bool CheckComponentMatch(Type type, string managerName, Tuple<Typ
10311031
/// </summary>
10321032
public static IMixedRealityTeleportSystem TeleportSystem => teleportSystem ?? (teleportSystem = Instance.GetManager<IMixedRealityTeleportSystem>());
10331033

1034-
private static IMixedRealityDiagnosticsManager diagnosticsSystem = null;
1034+
private static IMixedRealityDiagnosticsSystem diagnosticsSystem = null;
10351035

10361036
/// <summary>
10371037
/// The current Diagnostics System registered with the Mixed Reality Manager.
10381038
/// </summary>
1039-
public static IMixedRealityDiagnosticsManager DiagnosticsSystem => diagnosticsSystem ?? (diagnosticsSystem = Instance.GetManager<IMixedRealityDiagnosticsManager>());
1039+
public static IMixedRealityDiagnosticsSystem DiagnosticsSystem => diagnosticsSystem ?? (diagnosticsSystem = Instance.GetManager<IMixedRealityDiagnosticsSystem>());
10401040

10411041
#endregion Manager Accessors
10421042
}

0 commit comments

Comments
 (0)