{"id":16752698,"url":"https://github.com/luser/tracetree","last_synced_at":"2025-03-17T02:31:05.777Z","repository":{"id":49033447,"uuid":"72871897","full_name":"luser/tracetree","owner":"luser","description":"A tool for capturing the execution of an entire process tree","archived":false,"fork":false,"pushed_at":"2021-06-30T17:28:12.000Z","size":107,"stargazers_count":49,"open_issues_count":4,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-14T04:19:10.365Z","etag":null,"topics":["process","profiler","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/luser.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-04T17:49:42.000Z","updated_at":"2025-02-07T10:45:34.000Z","dependencies_parsed_at":"2022-09-26T20:41:06.268Z","dependency_job_id":null,"html_url":"https://github.com/luser/tracetree","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luser%2Ftracetree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luser%2Ftracetree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luser%2Ftracetree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luser%2Ftracetree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luser","download_url":"https://codeload.github.com/luser/tracetree/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243521210,"owners_count":20304188,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["process","profiler","rust"],"created_at":"2024-10-13T02:47:51.495Z","updated_at":"2025-03-17T02:31:05.258Z","avatar_url":"https://github.com/luser.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/luser/tracetree.svg?branch=master)](https://travis-ci.org/luser/tracetree) [![crates.io](https://img.shields.io/crates/v/tracetree.svg)](https://crates.io/crates/tracetree) [![](https://docs.rs/tracetree/badge.svg)](https://docs.rs/tracetree)\n\ntracetree\n=========\nRun a process, ptrace'ing it and all of its children, and print the entire process tree at the end.\n\nCurrently only Linux support is implemented.\n\nExamples\n========\n\nPrint a process tree in text format to stdout:\n\n    $ tracetree /bin/bash -c '/bin/sleep 1; /bin/sleep 1'\n    16665 bash -c /bin/sleep 1; /bin/sleep 1 [2.004s]\n    \t16666 sleep 1 [1.001s]\n    \t16667 sleep 1 [1.000s]\n\n\nPrint a process tree in JSON format to `output.json`:\n\n    $ tracetree -f json -o output.json /bin/bash -c '/bin/sleep 1; /bin/sleep 1'\n    $ python -mjson.tool output.json\n    {\n        \"children\": [\n            {\n                \"children\": [],\n                \"cmdline\": [\n                    \"/bin/sleep\",\n                    \"1\"\n                ],\n                \"ended\": \"2017-06-22T06:28:58.960384212-04:00\",\n                \"pid\": 16727,\n                \"started\": \"2017-06-22T06:28:57.959636824-04:00\"\n            },\n            {\n                \"children\": [],\n                \"cmdline\": [\n                    \"/bin/sleep\",\n                    \"1\"\n                ],\n                \"ended\": \"2017-06-22T06:28:59.961990469-04:00\",\n                \"pid\": 16728,\n                \"started\": \"2017-06-22T06:28:58.960849779-04:00\"\n            }\n        ],\n        \"cmdline\": [\n            \"/bin/bash\",\n            \"-c\",\n            \"/bin/sleep 1; /bin/sleep 1\"\n        ],\n        \"ended\": \"2017-06-22T06:28:59.962407641-04:00\",\n        \"pid\": 16726,\n        \"started\": \"2017-06-22T06:28:57.958836370-04:00\"\n    }\n\n\nJSON output can be viewed with this [web visualizer](https://luser.github.io/tracetree/):\n![The web viewer displaying the JSON output from the previous command](docs/webviewer.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluser%2Ftracetree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluser%2Ftracetree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluser%2Ftracetree/lists"}