-
Notifications
You must be signed in to change notification settings - Fork 178
Add ProfilingBlockDevice API doc #320
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
Add ProfilingBlockDevice API doc #320
Conversation
Delete that pesky Oxford comma.
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.
This looks good. Please address my queries and comments. Also, thanks for the large dependency note. It's awesome.
@@ -1,2 +1,15 @@ | |||
## ProfilingBlockDevice | |||
|
|||
The ProfilingBlockDevice class provides a BlockDevice implementation to wrap around an existing block device object to log reads, writes and erases. |
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.
Content query: Is this too much like calling this a wrapper?
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.
We should use it.
@@ -1,2 +1,15 @@ | |||
## ProfilingBlockDevice | |||
|
|||
The ProfilingBlockDevice class provides a BlockDevice implementation to wrap around an existing block device object to log reads, writes and erases. | |||
|
|||
ProfilingBlockDevices take in a pointer to the block device being profiled as the only configurable parameter. All block device operations that wish to be logged need to be performed through the ProfilingBlockDevice object. |
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: What does it mean that the operations need to be performed through the object? Please clarify. Also, please stop personifying operations. They don't like it when you do that.
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.
In order for read, write, and erase calls to be counted, they need to be be called from the ProfilingBlockDevice object, not the underlying block device directly.
In other words given a block device object bd
, and a profilingblockdevice object profiler
pointing to bd
you'd need to call
profiler.read(....);
rather than
bd.read(...);
I can rephrase that to be more clear and remove the personified operations.
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.
Ah. Makes sense. Please do. Thanks. 👍
@AnotherButler Rephrased the use case a bit. |
Delete another sneaky comma, and change passive to active voice.
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 changes. 👍
@AnotherButler @pan- Updated the phrasing to use decorator. |
DEPENDENT ON ARMmbed/mbed-os#5395
The class reference link will be broken until the above PR is merged and the doxygen docs are regenerated.
@AnotherButler
@sg-