aboutsummaryrefslogtreecommitdiff
path: root/avatar/metrics/README.md
blob: 0f4d9156bb5eb9b9265eebe2ae8d349d17df33bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Metrics

Avatar metrics use `perfetto` traces.

## Perfetto traces

For convenience, `trace_pb2.py` and `trace_pb2.pyi` are pre-generated.

To regenerate them run the following:

```
pip install protoc-exe
protoc trace.proto --pyi_out=./ --python_out=./
```

To ensure compliance with the linter, you must modify the generated
`.pyi` file by replacing `Union[T, _Mapping]` to `T`.