bloomberg / memray

Memray is a memory profiler for Python
https://bloomberg.github.io/memray/
Apache License 2.0
13.36k stars 397 forks source link

Support added for memray --version & -V #420

Closed apurvakhatri closed 1 year ago

apurvakhatri commented 1 year ago

Issue number of the reported bug or feature request: #417

Describe your changes In order for memray to display its own version, I have added an argument to basic parser. Since it is added as an option rather than positional argument, only the init file was modified. Further, README has been updated on how to use the option.

Testing performed The command "memray --version" or "memray -V" successfully ran on my system (MacOS).

Additional context

codecov-commenter commented 1 year ago

Codecov Report

Patch coverage has no change and project coverage change: +0.19 :tada:

Comparison is base (3ca2337) 84.85% compared to head (8f5cb97) 85.04%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #420 +/- ## ========================================== + Coverage 84.85% 85.04% +0.19% ========================================== Files 29 29 Lines 3631 3631 ========================================== + Hits 3081 3088 +7 + Misses 550 543 -7 ``` | Flag | Coverage Δ | | |---|---|---| | cpp | `85.04% <ø> (+0.19%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bloomberg#carryforward-flags-in-the-pull-request-comment) to find out more. [see 2 files with indirect coverage changes](https://app.codecov.io/gh/bloomberg/memray/pull/420/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bloomberg)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

pablogsal commented 1 year ago

Thanks a lot for the PR @apurvakhatri 🖤