The open source OpenXR runtime
1# Metrics collecting {#metrics}
2
3<!--
4Copyright 2022, Collabora, Ltd. and the Monado contributors
5SPDX-License-Identifier: BSL-1.0
6-->
7
8## Requirements
9
10Monado comes with it's own metrics collection and is built by default. No action
11is needed by the developer to build the Monado sides of things. You will need to
12checkout the [metrics repo][] to get the tools to analyse the resulting output
13from Monado.
14
15## Running
16
17Launch the service with the env variable `XRT_METRICS_FILE` set.
18
19```bash
20XRT_METRICS_FILE=/path/to/file.protobuf monado-service
21```
22
23After Monado has finished running run the tool in the [metrics repo][], follow
24the instructions in the [README.md][] file inside of that repo, there are more
25instructions there.
26
27[metrics repo]: https://gitlab.freedesktop.org/monado/utilities/metrics
28[README.md]: https://gitlab.freedesktop.org/monado/utilities/metrics/-/blob/main/README.md