-
Notifications
You must be signed in to change notification settings - Fork 8
Show CPU Time and History #460
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
Conversation
Signed-off-by: Jens Reinecke <[email protected]>
|
Diff Coverage: The code coverage on the diff in this pull request is 93.0%. Total Coverage: This PR will increase coverage by 0.01%. File Coverage Changes
🛟 Help
|
Signed-off-by: Jens Reinecke <[email protected]>
Signed-off-by: Jens Reinecke <[email protected]>
Signed-off-by: Jens Reinecke <[email protected]>
Signed-off-by: Jens Reinecke <[email protected]>
Signed-off-by: Jens Reinecke <[email protected]>
Signed-off-by: Jens Reinecke <[email protected]>
Signed-off-by: Jens Reinecke <[email protected]>
Signed-off-by: Jens Reinecke <[email protected]>
Signed-off-by: Jens Reinecke <[email protected]>
Signed-off-by: Jens Reinecke <[email protected]>
Signed-off-by: Jens Reinecke <[email protected]>
…round) Signed-off-by: Jens Reinecke <[email protected]>
Signed-off-by: Jens Reinecke <[email protected]>
Signed-off-by: Jens Reinecke <[email protected]>
Signed-off-by: Jens Reinecke <[email protected]>
Signed-off-by: Jens Reinecke <[email protected]>
Signed-off-by: Jens Reinecke <[email protected]>
Signed-off-by: Jens Reinecke <[email protected]>
Signed-off-by: Jens Reinecke <[email protected]>
Signed-off-by: Jens Reinecke <[email protected]>
Signed-off-by: Jens Reinecke <[email protected]>
Signed-off-by: Jens Reinecke <[email protected]>
Signed-off-by: Jens Reinecke <[email protected]>
Signed-off-by: Jens Reinecke <[email protected]>
Signed-off-by: Jens Reinecke <[email protected]>
Signed-off-by: Jens Reinecke <[email protected]>
Signed-off-by: Jens Reinecke <[email protected]>
Signed-off-by: Jens Reinecke <[email protected]>
Signed-off-by: Jens Reinecke <[email protected]>
Signed-off-by: Jens Reinecke <[email protected]>
Signed-off-by: Jens Reinecke <[email protected]>
Signed-off-by: Jens Reinecke <[email protected]>
Signed-off-by: Jens Reinecke <[email protected]>
Signed-off-by: Jens Reinecke <[email protected]>
Signed-off-by: Jens Reinecke <[email protected]>
Signed-off-by: Jens Reinecke <[email protected]>
Signed-off-by: Jens Reinecke <[email protected]>
Signed-off-by: Jens Reinecke <[email protected]>
…ier testing) Signed-off-by: Jens Reinecke <[email protected]>
Signed-off-by: Jens Reinecke <[email protected]>
Signed-off-by: Jens Reinecke <[email protected]>
Signed-off-by: Jens Reinecke <[email protected]>
Signed-off-by: Jens Reinecke <[email protected]>
edriouk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fixes
Changes
Note: Automated tests are still TODO.
cmsissetting(s). And if an enabled DWT CYCCNT is found for the session (connected CPU).SystemCoreClock, otherwise states/cycles.CPU Time: Print the current time + diffs to up to 5 previous stops.Reset CPU Time: Reset the current time to 0 and clear the history.Run and Debug.Known Limitations
main.SystemCoreClockneeds another review. Currently happening twice on some occasions to keep status bar item updates going without source code. This can sometimes cause some flickering.SystemCoreClockchanges.,and does not go beyondmilliseconds.Most limitations are addressable. Probably in further commits to this PR.
Implementation Details
debug-session: Modules around tracking debug sessions and communicating with session resources.gdb-target-tracker: Moved fromdebug-configurationfolder, debug tracker dispatching events and requests/responses of interest through event emitter.gdbtarget-debug-session: Session wrapper with cached*.cbuild-run.ymlcontent, some convenience functions to read memory and evaluate global variables.features/cpu-states: Modules to manage DWT CYCCNT reads for different sessions, and to derive current CPU execution states/time and diff history between stops. Reads through Debug Adapter Protocol memory requests.cpu-states: Manages reads and updates.cpu-states-history: Manages history for a single session.cpu-states-statusbar-item: GUI element to show CPU Time/States in status bar, and that shows command QuickPick on click. Adjust to active session.cpu-states-commands: Commands registered to command palette and to QuickPick. Adjust to active session.utils.tswith rudimentary time calculation function@vscode/debugprotocolv1.68.0 as dev dependencyScreenshots
Without frequency
Checklist