Skip to content

Commit 287870c

Browse files
author
David Kline
authored
Merge pull request #3811 from davidkline-ms/docs_diags
Getting started and configuring documentation for the diagnostics system
2 parents 5d352c7 + 9f7bf0e commit 287870c

File tree

9 files changed

+127
-3
lines changed

9 files changed

+127
-3
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Configuring the Diagnostics System
2+
3+
The diagnostics system profile provides options for configuring:
4+
- [General Settings](#general-settings)
5+
- [Profiler Settings](#profiler-settings)
6+
7+
## General Settings
8+
9+
![Diagnostics General Settings](../../External/ReadMeImages/Diagnostics/DiagnosticsGeneralSettings.png)
10+
11+
### Show Diagnostics
12+
13+
Indicates whether or not the diagnostics system is to display the configured diagnostic options.
14+
15+
> When disabled, all configured diagnostic options will be hidden.
16+
17+
## Profiler Settings
18+
19+
![Diagnostics Profiler Settings](../../External/ReadMeImages/Diagnostics/DiagnosticsProfilerSettings.png)
20+
21+
### Show Profiler
22+
23+
Indicates whether or not the Visual Profiler is to be displayed.
24+
25+
### Frame Sample Rate
26+
27+
The amount of time, in seconds to collect frames for frame rate calculation. The range is 0 to 5 seconds.
28+
29+
### Window Anchor
30+
31+
To what portion of the view port should the profiler window be anchored. The default value is Lower Center.
32+
33+
### Window Offset
34+
35+
The offset, from the center of the view port, to place the Visual Profiler. The offset will be in the direction
36+
of the [Window Anchor](#window-anchor).
37+
38+
### Window Scale
39+
40+
Size multiplier applied to the profiler window. For example, setting the value to 2 will double the window size.
41+
42+
### Window Follow Speed
43+
44+
The speed at which to move the profiler window to maintain visibility within the view port.
45+
46+
## See Also
47+
48+
- [Diagnostics System](DiagnosticsSystemGettingStarted.md)
49+
- [Using the Visual Profiler](../TODO.md)
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Diagnostic System
2+
3+
The Mixed Reality Toolkit Diagnostics System provides diagnostic tools that run within the
4+
application to enable analysis of application issues.
5+
6+
The first release of the diagnostics system contains the Visual Profiler to allow for analyzing
7+
performance issues while using the application.
8+
9+
## Getting Started
10+
11+
> It is **_highly_** recommended that the diagnostics system be enabled throughout the entire product
12+
development cycle and disabled as the last change prior to building and releasing the final version.
13+
14+
1. [Enable](#enable-diagnostics) the diagnostic system
15+
2. [Configure](#configure-diagnostic-options) diagnostic options
16+
3. [Build and deploy](#build-and-deploy)
17+
18+
### Enable Diagnostics
19+
20+
The diagnostics system is managed by the MixedRealityToolkit object (or another
21+
[service registrar](xref:Microsoft.MixedReality.Toolkit.IMixedRealityServiceRegistrar) component).
22+
23+
> The following steps presume use of the MixedRealityToolkit object. Steps required for other service registrars may be different.
24+
25+
1. Select the MixedRealityToolkit object in the scene hierarchy.
26+
27+
![MRTK Configured Scene Hierarchy](../../External/ReadMeImages/MRTK_ConfiguredHierarchy.png)
28+
29+
2. Navigate the Inspector panel to the Diagnostics System section and check Enable
30+
31+
![Enable the Diagnostics System](../../External/ReadMeImages/Diagnostics/MRTKConfig_Diagnostics.png)
32+
33+
3. Select the Diagnostics System implementation
34+
35+
![Select the Diagnostics System Implementation](../../External/ReadMeImages/Diagnostics/DiagnosticsSelectSystemType.png)
36+
37+
> Users of the default profile (DefaultMixedRealityToolkitConfigurationProfile) will have the
38+
diagnostics system pre-configured to use the MixedRealityDiagnosticsSystem object.
39+
40+
### Configure Diagnostic Options
41+
42+
The diagnostics system uses a configuration profile to specify which components are to be displayed
43+
and to configure their settings. Please see [Configuring the Diagnostics System](ConfiguringDiagnostics.md)
44+
for more information pertaining to the available component settings.
45+
46+
![Diagnostics Options](../../External/ReadMeImages/Diagnostics/DiagnosticsProfile.png)
47+
48+
### Build and Deploy
49+
50+
Once the diagnostic system is configured with the desired options, the project can be built
51+
and deployed to the target platform.
52+
53+
> While it is possible to use Unity's Play Mode while developing applications without requiring the build
54+
and deploy steps, it is important to evaluate the diagnostics system results using a compiled application
55+
running on the target hardware and platform. Performance diagnostics, such as the Visual Profiler, may not
56+
accurately reflect actual application performance when run from within the editor.
57+
58+
## See Also
59+
60+
- [Diagnostics API documentation](xref:Microsoft.MixedReality.Toolkit.Diagnostics)
61+
- [Configuring the Diagnostics System](ConfiguringDiagnostics.md)
62+
- [Using the Visual Profiler](../TODO.md)
63+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Using the Visual Profiler
2+
3+
<< >>
4+
5+
## See Also
6+
7+
- [Diagnostics System](DiagnosticsSystemGettingStarted.md)
8+
- [Configuring the Diagnostics System](ConfiguringDiagnostics.md)

Documentation/toc.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,15 @@
6565
href: SpatialAwareness/SpatialAwarenessGettingStarted.md
6666
items:
6767
- name: Configuring the Spatial Awareness Mesh Observer
68-
href: SpatialAwareness/ConfiguringSpatialAwarenessMeshObserver.md
6968
- name: In-Editor Input Simulation
7069
href: TODO.md
71-
- name: Performance Diagnostic Tool
72-
href: TODO.md
70+
- name: Diagnostics System
71+
href: Diagnostics/DiagnosticsSystemGettingStarted.md
72+
items:
73+
- name: Configuring the Diagnostics System
74+
href: Diagnostics/ConfiguringDiagnostics.md
75+
- name: Using the Visual Profiler
76+
href: TODO.md
7377
- name: Other Features
7478
href: TODO.md
7579
items:
2.82 KB
Loading
25.1 KB
Loading
9.99 KB
Loading
16.3 KB
Loading
15.5 KB
Loading

0 commit comments

Comments
 (0)