-
Notifications
You must be signed in to change notification settings - Fork 178
Move stats API docs to config format #837
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
This is waiting on engineering review, docs review and a code dependency. |
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.
@kegilbert Good addition.. Just a small change as we discussed
@deepikabhavnani Thanks for the patch! |
@@ -1,27 +1,75 @@ | |||
## Mbed statistics | |||
|
|||
Mbed OS provides a set of functions that you can use to capture the memory and thread statistics at runtime. `mbed_stats.h` declares these functions. To enable all Mbed OS statistics, you must build code with the `MBED_ALL_STATS_ENABLED` macro. | |||
Mbed OS provides a set of functions that you can use to capture the memory and thread statistics at runtime. `mbed_stats.h` declares these functions. To enable all Mbed OS platform statistics, you must enable the following Mbed OS configuration option: | |||
|
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.
Query: Is this information already in the configuration section? If so, instead of duplicating it, can we link to it? If not, why not?
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.
It is sort of, it'd require some reading and understanding of how to setup the overrides in JSON. I could just say
enable
platform.cpu-stats-enabled
but think this is a bit easier for the user. It does add more things to the page though.
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.
We should definitely link to the config page, at least.
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.
Please share which config page? Also please new config will not be visible anywhere till code is merged
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.
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.
Linking to the page in addition to the snippet is a solid idea. This page has a tip note that links to the config page for reference:
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.
Please see comment.
This PR is waiting on engineering changes and a code dependency. |
Replace enabling stats API with macros to using the official config system
Co-Authored-By: kegilbert <[email protected]>
657d099
to
d754c34
Compare
@AnotherButler Blocking PR was merged, rebased and going through tests again. |
Make minor copy edits.
d754c34
to
1713ca3
Compare
Add tip linking to config page for additional information.
ARMmbed/mbed-os#8761 was merged, good to go!
Replace enabling stats API with macros to using the official config system.
@deepikabhavnani will this be accurate? It sounded like there was some potential changes in the required PR linked above.