Skip to content

Add subsystem periodic performance timing and docs#65

Open
tytremblay wants to merge 1 commit intomainfrom
ty/per_subsystem_loop_time
Open

Add subsystem periodic performance timing and docs#65
tytremblay wants to merge 1 commit intomainfrom
ty/per_subsystem_loop_time

Conversation

@tytremblay
Copy link
Contributor

@tytremblay tytremblay commented Mar 11, 2026

Summary

  • add a reusable periodic timing utility (TimeLogged + PeriodicTimingLogger) that logs per-subsystem loop stats to AdvantageKit (lastMs, avgMs, minMs, maxMs, ewmaMs, samples)
  • instrument key subsystem periodic() methods and KinematicsManager with a consistent Performance/SubsystemPeriodic/... path convention
  • add rhr_docs/PERFORMANCE_TRACKING.md with implementation details, usage guidance, and link it from rhr_docs/ARCHITECTURE.md

Test plan

  • ./gradlew compileJava -x spotlessJava
  • ./gradlew compileJava (fails locally in spotlessJava with google-java-format NoSuchMethodError related to JDK/tooling)

Made with Cursor

Instrument subsystem periodic loops with lightweight timing metrics so loop-cost hotspots are visible in AdvantageKit, and document the implementation and usage for future rollout.

Made-with: Cursor
@tytremblay tytremblay force-pushed the ty/per_subsystem_loop_time branch from 52453ba to 7cfe405 Compare March 18, 2026 00:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant