Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stats for activity level of each robot #1341

Open
kostmo opened this issue Jun 24, 2023 · 1 comment
Open

Stats for activity level of each robot #1341

kostmo opened this issue Jun 24, 2023 · 1 comment
Assignees
Labels
S-Nice to have The bug fix or feature would be nice but doesn't currently have much negative impact. Z-Feature A new feature to be added to the game.

Comments

@kostmo
Copy link
Member

kostmo commented Jun 24, 2023

It could be useful for debugging (or just interesting to observe) to have a live measurement of the level of activity of each robot. There are a few different ways this information could be presented in the F2 "Robots" popup:

  1. Absolute number of "steps" of the CESK machine executed over the robot's lifetime. This would include both tangible and intangible commands. It would lend observability especially to system robots that may be performing more work than intended.
  2. Steps per tick: Keep track of a window over a certain number of ticks and compute the running average.
  3. Duty cycle: Ratio of "clock ticks" that the robot has been Waiting/Idle vs Busy. To be useful, the "window" of the duty cycle should probably depend on what "speed" the UI is currently set to.
@kostmo kostmo added the Z-Feature A new feature to be added to the game. label Jun 24, 2023
@byorgey
Copy link
Member

byorgey commented Jun 24, 2023

Yes, all of these sound nice!

@kostmo kostmo added the S-Nice to have The bug fix or feature would be nice but doesn't currently have much negative impact. label Aug 15, 2023
@kostmo kostmo self-assigned this Aug 31, 2023
mergify bot pushed a commit that referenced this issue Sep 7, 2023
Towards #1341.

    scripts/play.sh -i data/scenarios/Testing/1341-command-count.yaml --autoplay --speed 1

![image](https://github.com/swarm-game/swarm/assets/261693/f658bb9c-6bb8-494c-b204-6d5bb0106b92)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-Nice to have The bug fix or feature would be nice but doesn't currently have much negative impact. Z-Feature A new feature to be added to the game.
Projects
None yet
Development

No branches or pull requests

2 participants