1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-10-01 08:20:47 +00:00
CC-Tweaked/src
Jonathan Coates 0b26ab366d
Rewrite the metrics system
- Remove TrackingField and replace it with a Metric abstract class.
   This has two concrete subclasses - Counter and Event. Events carry an
   additional piece of data each time it is observed, such as HTTP
   response size.

 - Computers now accept a MetricsObserver, which tracks metrics for this
   particular computer. This allows us to decouple Computer classes and
   metrics information. The concrete MetricsObserver class we use within
   Minecraft exposes the ServerComputer directly, so we no longer need to
   do the awkward mapping and lookups!

 - The /computercraft command can now do aggregates (count, avg, max)
   over all Event metrics. This removes the need for special handling of
   computer and server time.

There's also a small number of changes in removing the coupling between
Computer and some of its dependencies (ILuaMachine, MainThreadExecutor).
This makes some future refactorings easier, I promise!
2022-10-22 01:35:13 +01:00
..
generated Move some eldritch horrors to another directory 2022-06-01 01:02:26 +01:00
main Rewrite the metrics system 2022-10-22 01:35:13 +01:00
test Rewrite the metrics system 2022-10-22 01:35:13 +01:00
testMod Expose getters for the detail registry too (#1188) 2022-10-22 00:42:07 +01:00
web Make the sidebar a little wider 2022-09-29 22:21:38 +01:00