Skip to main content

list process' PSS sorted descendingly within their parent-child hierarchy. can also do same for disk-space usage

Reason this release was yanked:

breaks without sudo

Project description

PSS-tree

# python -m psstree --help

usage: __main__.py [-h] [--expand] [--raw] [--du PATH]

gets process' PSS via /proc/<PID>/smaps(_rollup), sorts it descendingly within their parent-child hierarchy, and displays it in an interactive TUI with collapsible sections. alternatively can do the same for disk-space usage given a root-path


options:
  -h, --help  show this help message and exit
  --expand    [TUI only] expand all collapsible sections at start
  --raw       disable TUI and dump formatted repr directly to stdout
  --du PATH   report disk space instead, for given root-path

# python -m psstree --raw

Proportional Set Size (PSS) "[<total-PSS-including-all-children>] command-name(pid): `<individual-PSS>` <full-cmdline-args>"
 ╭─[15.78MB] bash(7): `2.06MB` ['bash']
 │  ├─[12.77MB] python(148): `12.77MB` ['python', '-m', 'psstree', '--raw']
 │  ├─[0.32MB] sleep(144): `0.32MB` ['sleep', '10']
 │  ├─[0.31MB] sleep(143): `0.31MB` ['sleep', '10']
 │  ╰─[0.31MB] sleep(145): `0.31MB` ['sleep', '10']
 ╰─[1.83MB] bash(1): `1.51MB` ['bash']
    ╰─[0.32MB] sleep(147): `0.32MB` ['sleep', '10']

# python -m psstree --raw --du ./src/

Disk-Space usage "[<total-space-including-subdirs-recursively>] <path>"
 ╶─[0.098MB] ./src
    ├─[0.078MB] ./src/psstree
    │  ├─[0.059MB] ./src/psstree/__pycache__
    │  │  ├─[0.012MB] ./src/psstree/__pycache__/utils.cpython-314.pyc
    │  │  ├─[0.012MB] ./src/psstree/__pycache__/utils.cpython-311.pyc
    │  │  ├─[0.008MB] ./src/psstree/__pycache__/utils.cpython-39.pyc
    │  │  ├─[0.008MB] ./src/psstree/__pycache__/types.cpython-311.pyc
    │  │  ├─[0.004MB] ./src/psstree/__pycache__/__main__.cpython-39.pyc
    │  │  ├─[0.004MB] ./src/psstree/__pycache__/tui.cpython-39.pyc
    │  │  ├─[0.004MB] ./src/psstree/__pycache__/__main__.cpython-314.pyc
    │  │  ├─[0.004MB] ./src/psstree/__pycache__/tui.cpython-311.pyc
    │  │  ╰─[0.004MB] ./src/psstree/__pycache__/__main__.cpython-311.pyc
    │  ├─[0.008MB] ./src/psstree/utils.py
    │  ├─[0.004MB] ./src/psstree/types.py
    │  ├─[0.004MB] ./src/psstree/tui.py
    │  ╰─[0.004MB] ./src/psstree/__main__.py
    ╰─[0.020MB] ./src/psstree.egg-info
       ├─[0.004MB] ./src/psstree.egg-info/PKG-INFO
       ├─[0.004MB] ./src/psstree.egg-info/SOURCES.txt
       ├─[0.004MB] ./src/psstree.egg-info/requires.txt
       ├─[0.004MB] ./src/psstree.egg-info/top_level.txt
       ╰─[0.004MB] ./src/psstree.egg-info/dependency_links.txt

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

psstree-0.2.0.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

psstree-0.2.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file psstree-0.2.0.tar.gz.

File metadata

  • Download URL: psstree-0.2.0.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for psstree-0.2.0.tar.gz
Algorithm Hash digest
SHA256 261463e4c1aed76d36a8f486f8c085407d9ee0ea1f56fb0af84719d7b0293df0
MD5 10f6587ef99e7df17ba4e93c53b76f06
BLAKE2b-256 f243129efbb5fdaf91f5ad29640cf1ed92fd4167b5046a407dd371c50d22c7aa

See more details on using hashes here.

File details

Details for the file psstree-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: psstree-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for psstree-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7330b1bbec54b3a900a555cc61091e621c907a89761e1d5fea1a27abe51c0b5d
MD5 3893a11d3535600601f48aa3ad6fe7d3
BLAKE2b-256 5109b3d8d112512ee34b63f61d001b8fd4d0da420739214c588f1feab0ffaad7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page