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
Overhauled allocations documentation for helpfulness #643
base: main
Are you sure you want to change the base?
Conversation
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.
Thanks for this! See comments
@0xTim - made changes as suggested and corrected code formatting. |
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.
Almost there! Few last changes
|
||
```swift | ||
An example program using AsyncHTTPClient can be written as: | ||
``` |
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.
Missing language on the code block, re-add
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.
@0xTim - Thanks for the review. I'm not sure what's happening with the code. I'm not making any changes to the blocks or text unless it was something you previously caught. Any suggestions or insight would be appreciated. :-)
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.
|
||
```bash | ||
In this instance, a user probe was installed for all allocation functions because Swift uses other functions like `calloc` and `posix_memalign`. | ||
``` |
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.
Missing language in the code block
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.
On Apple platforms, Swift uses a slightly larger number of allocation functions than Linux. Therefore, specifying a few more functions is required. | ||
|
||
Once the data is collected, run this command to create an SVG file: | ||
``` |
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.
Language
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.
Not sure what you mean here. But removed "Therefore, specifying a few more functions is required." to mitigate confusion.
perf script | \ | ||
/FlameGraph/stackcollapse-perf.pl - | \ | ||
swift demangle --simplified | \ | ||
/FlameGraph/flamegraph.pl --countname allocations \ | ||
--width 1600 > out.svg | ||
--width 1600 > out.svg |
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.
Still missing the indentation
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.
Co-authored-by: Tim Condon <0xTim@users.noreply.github.com>
@0xTim - Hopefully, the latest changes will fix things. Thanks for your time and patience! :-) |
Motivation:
Edited documentation to improve helpfulness for new and experienced Swift on Server (SOS) users.
Modifications:
Added definitions and explanations where needed, edited existing content for clarity, and formatted for scannability.
Result:
Increase user adoption and bolster the SOS community.