-
Notifications
You must be signed in to change notification settings - Fork 25
Added ChibiOS RTOS Global Variable, Virtual Timers and Statistics, reworked createHmlHelp and refresh #34
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
|
It is not clear to me if this was handled but we expect more than one RTOS at the same time. This happens in multu-core debug where each core may be running an RTOS. So, the state info may have to be session specific. I would use the session name. |
I think you mean this part:
|
|
There is no concept of the current session. We need to pass the session-name to the new and all settings can be then stored as a combination of I have to look in the code to figure out how to pass the session-name to the webview side Also, there could be more than one session stopped. This is why there is no concept of a current session. |
|
We can make each RTOS session info under a div whose element-id would be the session-name. Session names will be unique as VSCode will not allow dups (AFAIK). So, if you extract the full path to your element, then that could be the key. |
Do you mean full Dom path? |
|
Okay, not sure we are on the same wavelength here. In a multi-core setup, we can have more than one debug session going at the same time. One session can use FreeRTOS and another can use ChibiOS. We put in a whole lot of effort to make this happen in a single instance of VSCode. https://github.com/Marus/cortex-debug/wiki/Multi-core-debugging You can also have multiple sessions independent of the cortex-debug method in the same instance of VSCode. And, I am not talking about two different VSCode windows. That is a completely different topic. |
|
it is clear now, thanks for explanation! |
…views into feature/ChibiOS-Support
|
Hmmm. It appears that a build has failed. Looks like |
|
@PhilippHaefele when you get a chance, could you review this PR? |
| "sourceMap": true, | ||
| "allowJs": true, | ||
| "checkJs": false, | ||
| "skipLibCheck": true, |
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.
Nice one, didn't know that one
| { columnDataKey: 'counter', title: 'Iterations' }, | ||
| { columnDataKey: 'cumulative', title: 'Cumulative Time' } ]; | ||
|
|
||
| const traceCols = [{ columnDataKey: 'event', title: 'Event' }, |
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.
Is it intended that traceCols is not used?
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.
yes, trace code is not in use now. It takes too long to get trace data.
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.
👍
src/rtos/rtos-chibios.ts
Outdated
| { name: 'aria-label', value: 'Statistics' }]); | ||
|
|
||
| const htmlRTOSPanels = this.getHTMLPanels([{ title: 'GLOBAL' }, | ||
| { title: `THREADS |
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.
I would like to see the threads as the default (first) entry.
I think this is the first thing a user wants to see in the first place to get an overview of the OS state.
@haneefdm Any opinion regarding this?
src/rtos/rtos-chibios.ts
Outdated
| @@ -1,11 +1,13 @@ | |||
| /* eslint-disable @typescript-eslint/naming-convention */ | |||
| import { breadcrumbTemplate } from '@microsoft/fast-foundation'; | |||
| import { buffer } from 'stream/consumers'; | |||
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.
buffer and breadcrumbTemplate do not seem to be used or do i overse something?
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.
removed
Agree. This would be the expectation |
|
I would like to make a release soon. Quite a few things are batched up. I will merge this soon. I know @PhilippHaefele is busy for a couple of days but I would like him to finish his review. Can you all update the CHANGELOG as needed if not already done? |
|
Only the default view discussion is open and after that being resolved, we're good to go from my side 👍 |
check this out: |
|
Ups that somehow got hidden from me in the GitHub app 😄 @haneefdm So we're good to go |
@haneefdm, should I update CHANGELOG with new PR? |
|
I already made a release over the weekend. But, sure you can edit the CHANGELOG and update what I said. Add the PR# perhaps. It is best to update the Changelog as we submit PRs. |
No description provided.