Skip to content

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

Merged
merged 4 commits into from
Nov 29, 2018
Merged

Conversation

kegilbert
Copy link
Contributor

@kegilbert kegilbert commented Nov 16, 2018

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.

@AnotherButler
Copy link
Contributor

This is waiting on engineering review, docs review and a code dependency.

@kegilbert
Copy link
Contributor Author

image
Is....is this OK? I feel dirty.

Copy link

@deepikabhavnani deepikabhavnani left a 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

@kegilbert
Copy link
Contributor Author

@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:

Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

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.

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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

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:

https://os.mbed.com/docs/v5.10/tutorials/optimizing.html

Copy link
Contributor

@AnotherButler AnotherButler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see comment.

@AnotherButler
Copy link
Contributor

This PR is waiting on engineering changes and a code dependency.

kegilbert and others added 2 commits November 27, 2018 11:09
Replace enabling stats API with macros to using the official config system
@kegilbert
Copy link
Contributor Author

@AnotherButler Blocking PR was merged, rebased and going through tests again.

Make minor copy edits.
Add tip linking to config page for additional information.
@AnotherButler AnotherButler merged commit b34148e into development Nov 29, 2018
@AnotherButler AnotherButler deleted the kegilbert-patch-1 branch December 4, 2018 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants