[commands] Add GetName to Subsystem, use in Scheduler tracer epochs (#5836)

This commit is contained in:
Ryan Blue
2023-12-01 02:10:53 -05:00
committed by GitHub
parent ac7d726ac3
commit 1144115da0
9 changed files with 37 additions and 8 deletions

View File

@@ -183,7 +183,7 @@ void CommandScheduler::Run() {
if constexpr (frc::RobotBase::IsSimulation()) {
subsystem.getFirst()->SimulationPeriodic();
}
m_watchdog.AddEpoch("Subsystem Periodic()");
m_watchdog.AddEpoch(subsystem.getFirst()->GetName() + ".Periodic()");
}
// Cache the active instance to avoid concurrency problems if SetActiveLoop()