KSP-KOS / KOS

Fully programmable autopilot mod for KSP. Originally By Nivekk
Other
697 stars 230 forks source link

Add an instruction counter #1804

Open PhoenixBlack opened 8 years ago

PhoenixBlack commented 8 years ago

Would it be possible to add an interface to the VM which returns number of instructions executed total so far by the VM? It does not have to be very precise (e.g. whether it counts the instruction fetching this value doesn't matter), simply an approximate measure of how many instructions executed (as a much more fine-grained measure of program execution than time - but not a temporal measure).

Use-case - making cooperative multi-tasking is made much easier when the system can measure amount of instructions spent in each task for diagnostics

PhoenixBlack commented 8 years ago

Eagerly awaiting for this. I've already got the realtime system part one, but now I don't know how to debug tasks running on the system as I can't measure how much time each task takes.

PhoenixBlack commented 6 years ago

Any updates on this? Seems like a pretty simple thing to add, but it's been very silent for a long time.

thexa4 commented 3 years ago

This has been fixed by #2890