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

Abbreviate Memray's path displayed in the TUI #495

Closed godlygeek closed 1 year ago

godlygeek commented 1 year ago

When the TUI shows a command line that indicates that Memray is running (either a command named memray or a file named memray/__main__.py as the first argument), shorten this to just "memray" to save room for more valuable information.

codecov-commenter commented 1 year ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (38e9ac8) 92.25% compared to head (1c576cd) 92.13%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #495 +/- ## ========================================== - Coverage 92.25% 92.13% -0.13% ========================================== Files 91 91 Lines 11028 11033 +5 Branches 1520 1524 +4 ========================================== - Hits 10174 10165 -9 - Misses 850 863 +13 - Partials 4 5 +1 ``` | [Flag](https://app.codecov.io/gh/bloomberg/memray/pull/495/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bloomberg) | Coverage Δ | | |---|---|---| | [cpp](https://app.codecov.io/gh/bloomberg/memray/pull/495/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bloomberg) | `85.39% <ø> (-0.36%)` | :arrow_down: | | [python_and_cython](https://app.codecov.io/gh/bloomberg/memray/pull/495/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bloomberg) | `95.48% <100.00%> (-0.02%)` | :arrow_down: | 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. | [Files](https://app.codecov.io/gh/bloomberg/memray/pull/495?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bloomberg) | Coverage Δ | | |---|---|---| | [src/memray/reporters/tui.py](https://app.codecov.io/gh/bloomberg/memray/pull/495?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bloomberg#diff-c3JjL21lbXJheS9yZXBvcnRlcnMvdHVpLnB5) | `96.17% <100.00%> (-0.19%)` | :arrow_down: | | [tests/unit/test\_tui\_reporter.py](https://app.codecov.io/gh/bloomberg/memray/pull/495?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bloomberg#diff-dGVzdHMvdW5pdC90ZXN0X3R1aV9yZXBvcnRlci5weQ==) | `98.81% <ø> (ø)` | | ... and [5 files with indirect coverage changes](https://app.codecov.io/gh/bloomberg/memray/pull/495/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: Have feedback on the report? Share it here.