-
Notifications
You must be signed in to change notification settings - Fork 397
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Allow producing a
memray.1
man page
This man page will contain a small bit of prose explaining what Memray is and where to find the full documentation, followed by CLI usage information scraped from the `--help` of each of our subcommands. Distros can build the man page for any given version to include in distro packages of Memray. Signed-off-by: Matt Wozniski <[email protected]>
- Loading branch information
Showing
4 changed files
with
151 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
:orphan: | ||
|
||
Overview | ||
======== | ||
|
||
.. argparse:: | ||
:ref: memray.commands.get_argument_parser | ||
:manpage: | ||
:nosubcommands: | ||
|
||
Memray can track memory allocations in Python code, in native extension modules, and in the Python | ||
interpreter itself. It can generate several different types of reports to help you analyze the captured | ||
memory usage data. While commonly used as a CLI tool, it can also be used as a library to perform more | ||
fine-grained profiling tasks. | ||
|
||
Most commonly you will use the ``memray run`` subcommand to create a capture file, and then use a reporter | ||
like the ``memray flamegraph`` subcommand to analyze it. | ||
|
||
.. note:: | ||
|
||
This manual page only documents usage of the Memray subcommands that can be invoked from the command line. | ||
See `<https://bloomberg.github.io/memray/overview.html>`_ for the full Memray documentation, which | ||
includes advice for interpreting Memray reports, example programs, API documentation, information about | ||
integrating Memray into Jupyter notebooks and pytest test suites, explanations to help you understand how | ||
Python uses memory and how Memray gathers information about memory usage, and more. | ||
|
||
RUN SUB-COMMAND | ||
--------------- | ||
|
||
.. argparse:: | ||
:ref: memray.commands.get_argument_parser | ||
:path: run | ||
:nodefaultconst: | ||
:noepilog: | ||
|
||
FLAMEGRAPH SUB-COMMAND | ||
---------------------- | ||
|
||
.. argparse:: | ||
:ref: memray.commands.get_argument_parser | ||
:path: flamegraph | ||
:nodefaultconst: | ||
:noepilog: | ||
|
||
TABLE SUB-COMMAND | ||
----------------- | ||
|
||
.. argparse:: | ||
:ref: memray.commands.get_argument_parser | ||
:path: table | ||
:nodefaultconst: | ||
:noepilog: | ||
|
||
LIVE SUB-COMMAND | ||
---------------- | ||
|
||
.. argparse:: | ||
:ref: memray.commands.get_argument_parser | ||
:path: live | ||
:nodefaultconst: | ||
:noepilog: | ||
|
||
TREE SUB-COMMAND | ||
---------------- | ||
|
||
.. argparse:: | ||
:ref: memray.commands.get_argument_parser | ||
:path: tree | ||
:nodefaultconst: | ||
:noepilog: | ||
|
||
PARSE SUB-COMMAND | ||
----------------- | ||
|
||
.. argparse:: | ||
:ref: memray.commands.get_argument_parser | ||
:path: parse | ||
:nodefaultconst: | ||
:noepilog: | ||
|
||
SUMMARY SUB-COMMAND | ||
------------------- | ||
|
||
.. argparse:: | ||
:ref: memray.commands.get_argument_parser | ||
:path: summary | ||
:nodefaultconst: | ||
:noepilog: | ||
|
||
STATS SUB-COMMAND | ||
----------------- | ||
|
||
.. argparse:: | ||
:ref: memray.commands.get_argument_parser | ||
:path: stats | ||
:nodefaultconst: | ||
:noepilog: | ||
|
||
TRANSFORM SUB-COMMAND | ||
--------------------- | ||
|
||
.. argparse:: | ||
:ref: memray.commands.get_argument_parser | ||
:path: transform | ||
:nodefaultconst: | ||
:noepilog: | ||
|
||
ATTACH SUB-COMMAND | ||
------------------ | ||
|
||
.. argparse:: | ||
:ref: memray.commands.get_argument_parser | ||
:path: attach | ||
:nodefaultconst: | ||
:noepilog: | ||
|
||
DETACH SUB-COMMAND | ||
------------------ | ||
|
||
.. argparse:: | ||
:ref: memray.commands.get_argument_parser | ||
:path: detach | ||
:nodefaultconst: | ||
:noepilog: |