Alex Potsides b425fa1230
fix: add tracked map (#1069)
Small refactor of the component stats - adds a `TrackedMap` which encapsulates updating the metrics and means we don't need to null guard on `this._metrics` everywhere.

If metrics are not enabled a regular `Map` is used.
2021-12-21 15:51:06 +01:00
..
2021-12-08 08:38:17 +00:00
2021-12-21 15:51:06 +01:00
2021-11-19 08:02:24 +00:00
2021-11-19 08:02:24 +00:00
2021-12-21 15:51:06 +01:00
2021-11-19 08:02:24 +00:00
2021-08-20 09:13:21 +02:00
2021-12-08 08:38:17 +00:00
2021-12-08 08:38:17 +00:00
2021-11-19 08:02:24 +00:00
2021-12-21 15:51:06 +01:00