strace-process-tree


Namestrace-process-tree JSON
Version 1.5.0 PyPI version JSON
download
home_pagehttps://github.com/mgedmin/strace-process-tree
SummaryProduce a process tree from an strace log
upload_time2024-04-19 10:43:46
maintainerNone
docs_urlNone
authorMarius Gedminas
requires_python>=3.7
licenseGPL v2 or v3
keywords strace log process tree
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            strace-process-tree
===================

.. image:: https://github.com/mgedmin/strace-process-tree/workflows/build/badge.svg?branch=master
    :target: https://github.com/mgedmin/strace-process-tree/actions


Reads strace -f output and produces a process tree.  Example ::

    $ strace -f -e trace=process -s 1024 -o /tmp/trace.out make binary-package
    ...

    $ strace-process-tree /tmp/trace.out
    25510 make binary-package
      ├─25511 /bin/sh -c 'dpkg-parsechangelog | awk '\''$1 == "Source:" { print $2 }'\'''
      │   ├─25512 dpkg-parsechangelog
      │   │   └─25514 tail -n 40 debian/changelog
      │   └─25513 awk '$1 == "Source:" { print $2 }'
      ├─25515 /bin/sh -c 'dpkg-parsechangelog | awk '\''$1 == "Version:" { print $2 }'\'''
      │   ├─25516 dpkg-parsechangelog
      │   │   └─25518 tail -n 40 debian/changelog
      │   └─25517 awk '$1 == "Version:" { print $2 }'
      ├─25519 /bin/sh -c 'dpkg-parsechangelog | grep ^Date: | cut -d: -f 2- | date --date="$(cat)" +%Y-%m-%d'
      │   ├─25520 dpkg-parsechangelog
      │   │   └─25525 tail -n 40 debian/changelog
      │   ├─25521 grep ^Date:
      │   ├─25522 cut -d: -f 2-
      │   └─25523 date --date=" Thu, 18 Jan 2018 23:39:51 +0200" +%Y-%m-%d
      │       └─25524 cat
      └─25526 /bin/sh -c 'dpkg-parsechangelog | awk '\''$1 == "Distribution:" { print $2 }'\'''
          ├─25527 dpkg-parsechangelog
          │   └─25529 tail -n 40 debian/changelog
          └─25528 awk '$1 == "Distribution:" { print $2 }'


Installation
------------

Use your favourite pip wrapper to install strace-process-tree, e.g.

    pipx install strace-process-tree


Synopsis
--------

Usage: strace-process-tree [-h] [--version] [-c] [-C] [-U] [-A] [-v] filename

Read strace -f output and produce a process tree. Recommended strace options
for best results:

  strace -f -ttt -e trace=process -s 1024 -o FILENAME COMMAND

positional arguments:
  filename        strace log to parse (use - to read stdin)

optional arguments:
  -h, --help      show this help message and exit
  --version       show program's version number and exit
  -c, --color     force color output
  -C, --no-color  disable color output
  -U, --unicode   force Unicode output
  -A, --ascii     force ASCII output
  -v, --verbose   more verbose output


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/mgedmin/strace-process-tree",
    "name": "strace-process-tree",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "strace log process tree",
    "author": "Marius Gedminas",
    "author_email": "marius@gedmin.as",
    "download_url": "https://files.pythonhosted.org/packages/e3/32/7f760414bb49768f36b79b6f10b726700fa6d9f64c62db38486bf910e2ca/strace-process-tree-1.5.0.tar.gz",
    "platform": null,
    "description": "strace-process-tree\n===================\n\n.. image:: https://github.com/mgedmin/strace-process-tree/workflows/build/badge.svg?branch=master\n    :target: https://github.com/mgedmin/strace-process-tree/actions\n\n\nReads strace -f output and produces a process tree.  Example ::\n\n    $ strace -f -e trace=process -s 1024 -o /tmp/trace.out make binary-package\n    ...\n\n    $ strace-process-tree /tmp/trace.out\n    25510 make binary-package\n      \u251c\u250025511 /bin/sh -c 'dpkg-parsechangelog | awk '\\''$1 == \"Source:\" { print $2 }'\\'''\n      \u2502   \u251c\u250025512 dpkg-parsechangelog\n      \u2502   \u2502   \u2514\u250025514 tail -n 40 debian/changelog\n      \u2502   \u2514\u250025513 awk '$1 == \"Source:\" { print $2 }'\n      \u251c\u250025515 /bin/sh -c 'dpkg-parsechangelog | awk '\\''$1 == \"Version:\" { print $2 }'\\'''\n      \u2502   \u251c\u250025516 dpkg-parsechangelog\n      \u2502   \u2502   \u2514\u250025518 tail -n 40 debian/changelog\n      \u2502   \u2514\u250025517 awk '$1 == \"Version:\" { print $2 }'\n      \u251c\u250025519 /bin/sh -c 'dpkg-parsechangelog | grep ^Date: | cut -d: -f 2- | date --date=\"$(cat)\" +%Y-%m-%d'\n      \u2502   \u251c\u250025520 dpkg-parsechangelog\n      \u2502   \u2502   \u2514\u250025525 tail -n 40 debian/changelog\n      \u2502   \u251c\u250025521 grep ^Date:\n      \u2502   \u251c\u250025522 cut -d: -f 2-\n      \u2502   \u2514\u250025523 date --date=\" Thu, 18 Jan 2018 23:39:51 +0200\" +%Y-%m-%d\n      \u2502       \u2514\u250025524 cat\n      \u2514\u250025526 /bin/sh -c 'dpkg-parsechangelog | awk '\\''$1 == \"Distribution:\" { print $2 }'\\'''\n          \u251c\u250025527 dpkg-parsechangelog\n          \u2502   \u2514\u250025529 tail -n 40 debian/changelog\n          \u2514\u250025528 awk '$1 == \"Distribution:\" { print $2 }'\n\n\nInstallation\n------------\n\nUse your favourite pip wrapper to install strace-process-tree, e.g.\n\n    pipx install strace-process-tree\n\n\nSynopsis\n--------\n\nUsage: strace-process-tree [-h] [--version] [-c] [-C] [-U] [-A] [-v] filename\n\nRead strace -f output and produce a process tree. Recommended strace options\nfor best results:\n\n  strace -f -ttt -e trace=process -s 1024 -o FILENAME COMMAND\n\npositional arguments:\n  filename        strace log to parse (use - to read stdin)\n\noptional arguments:\n  -h, --help      show this help message and exit\n  --version       show program's version number and exit\n  -c, --color     force color output\n  -C, --no-color  disable color output\n  -U, --unicode   force Unicode output\n  -A, --ascii     force ASCII output\n  -v, --verbose   more verbose output\n\n",
    "bugtrack_url": null,
    "license": "GPL v2 or v3",
    "summary": "Produce a process tree from an strace log",
    "version": "1.5.0",
    "project_urls": {
        "Homepage": "https://github.com/mgedmin/strace-process-tree"
    },
    "split_keywords": [
        "strace",
        "log",
        "process",
        "tree"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "dc090490190c3aa0b1f8a317858fdbebba8de1dbeb11bc51fc912586e9e07c94",
                "md5": "30c194287ac00cd4321c5d40cfb92536",
                "sha256": "c12a06dfadd6efef8c05637b8ebdea6e6c4bc11b7f89dbbdc83642853bbae96f"
            },
            "downloads": -1,
            "filename": "strace_process_tree-1.5.0-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "30c194287ac00cd4321c5d40cfb92536",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": ">=3.7",
            "size": 14479,
            "upload_time": "2024-04-19T10:43:42",
            "upload_time_iso_8601": "2024-04-19T10:43:42.317143Z",
            "url": "https://files.pythonhosted.org/packages/dc/09/0490190c3aa0b1f8a317858fdbebba8de1dbeb11bc51fc912586e9e07c94/strace_process_tree-1.5.0-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e3327f760414bb49768f36b79b6f10b726700fa6d9f64c62db38486bf910e2ca",
                "md5": "2d7952105872adebcad17bff4d489b5d",
                "sha256": "fcbebb0ad9729df1e36bd28a9c2d5e1251107e91be094429fbc2af8992afe86b"
            },
            "downloads": -1,
            "filename": "strace-process-tree-1.5.0.tar.gz",
            "has_sig": false,
            "md5_digest": "2d7952105872adebcad17bff4d489b5d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 23790,
            "upload_time": "2024-04-19T10:43:46",
            "upload_time_iso_8601": "2024-04-19T10:43:46.079472Z",
            "url": "https://files.pythonhosted.org/packages/e3/32/7f760414bb49768f36b79b6f10b726700fa6d9f64c62db38486bf910e2ca/strace-process-tree-1.5.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-19 10:43:46",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "mgedmin",
    "github_project": "strace-process-tree",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "appveyor": true,
    "tox": true,
    "lcname": "strace-process-tree"
}
        
Elapsed time: 0.23105s