{"id":13610444,"url":"https://github.com/wookietreiber/strace-analyzer","last_synced_at":"2025-04-10T02:24:14.468Z","repository":{"id":4650823,"uuid":"48237437","full_name":"wookietreiber/strace-analyzer","owner":"wookietreiber","description":"analyzes strace output","archived":false,"fork":false,"pushed_at":"2024-05-28T05:49:00.000Z","size":268,"stargazers_count":81,"open_issues_count":11,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-03T00:03:58.618Z","etag":null,"topics":["diagnostic","linux","strace","syscall"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wookietreiber.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-12-18T13:44:20.000Z","updated_at":"2025-03-14T20:50:19.000Z","dependencies_parsed_at":"2024-01-14T07:04:59.947Z","dependency_job_id":"a09f7c45-7e33-431c-9326-febb9eb61948","html_url":"https://github.com/wookietreiber/strace-analyzer","commit_stats":{"total_commits":48,"total_committers":3,"mean_commits":16.0,"dds":"0.10416666666666663","last_synced_commit":"afac4415ebccaef1350cd9d66240e70bea088bd7"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wookietreiber%2Fstrace-analyzer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wookietreiber%2Fstrace-analyzer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wookietreiber%2Fstrace-analyzer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wookietreiber%2Fstrace-analyzer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wookietreiber","download_url":"https://codeload.github.com/wookietreiber/strace-analyzer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248143488,"owners_count":21054790,"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":["diagnostic","linux","strace","syscall"],"created_at":"2024-08-01T19:01:44.737Z","updated_at":"2025-04-10T02:24:14.435Z","avatar_url":"https://github.com/wookietreiber.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"strace-analyzer\n===============\n\nAnalyzes [strace][] output.\n\n\nTable of Contents\n-----------------\n\n\u003c!-- toc --\u003e\n\n- [Usage](#usage)\n- [Analysis](#analysis)\n- [Installation](#installation)\n  * [Arch Linux](#arch-linux)\n  * [cargo install](#cargo-install)\n  * [from source](#from-source)\n\n\u003c!-- tocstop --\u003e\n\n\nUsage\n-----\n\nCreate logs:\n\n```bash\nstrace -s 0 -ff -o cmd.strace cmd\n```\n\nAnalyze logs, with `xxx` being the first process ID, the analysis will follow\nforked processes automatically:\n\n```bash\nstrace-analyzer cmd.strace.xxx\n```\n\n**Note:** Only works with traces created with the usage example above. There is\nno support for logs that contain output of multiple process IDs and the timed\noutput variants are supported neither. The above-mentioned `strace` command\nline yields the shortest output and allows tracing the forked processes without\ntoo much effort.\n\n\nAnalysis\n--------\n\nAt the moment, `strace-analyzer` only analyzes reads and writes to the file\nsystem:\n\n```console\n$ strace -s0 -ff -o tar.strace tar czfv pkgs.tar.gz /var/cache/pacman/pkg/linux-*\n/var/cache/pacman/pkg/linux-5.12.1.arch1-1-x86_64.pkg.tar.zst\n/var/cache/pacman/pkg/linux-api-headers-5.10.13-1-any.pkg.tar.zst\n/var/cache/pacman/pkg/linux-docs-5.12.1.arch1-1-x86_64.pkg.tar.zst\n/var/cache/pacman/pkg/linux-firmware-20210426.fa0efef-1-any.pkg.tar.zst\n/var/cache/pacman/pkg/linux-lts-5.10.34-1-x86_64.pkg.tar.zst\n\n$ strace-analyzer tar.strace.10099\nReads Bytes  Bytes/Op File\n9722  94.9M  10.0K    /var/cache/pacman/pkg/linux-5.12.1.arch1-1-x86_64.pkg.tar.zst\n111   1.1M   10.0K    /var/cache/pacman/pkg/linux-api-headers-5.10.13-1-any.pkg.tar.zst\n2244  21.9M  10.0K    /var/cache/pacman/pkg/linux-docs-5.12.1.arch1-1-x86_64.pkg.tar.zst\n17124 167.2M 10.0K    /var/cache/pacman/pkg/linux-firmware-20210426.fa0efef-1-any.pkg.tar.zst\n7642  74.6M  10.0K    /var/cache/pacman/pkg/linux-lts-5.10.34-1-x86_64.pkg.tar.zst\n\nWrites Bytes  Bytes/Op File\n23020  359.7M 16.0K    pkgs.tar.gz\n```\n\n\nInstallation\n------------\n\n### Arch Linux\n\nInstall the [strace-analyzer AUR package][aur-package]:\n\n```bash\npacaur -S strace-analyzer\n```\n\n### cargo install\n\n```bash\ncargo install strace-analyzer\n```\n\n### from source\n\n```bash\ngit clone https://github.com/wookietreiber/strace-analyzer.git\ncd strace-analyzer\ncargo build --release\ninstall -Dm755 target/release/strace-analyzer ~/bin/strace-analyzer\n```\n\n\n[aur-package]: https://aur.archlinux.org/packages/strace-analyzer \"strace-analyzer AUR package\"\n[strace]: http://sourceforge.net/projects/strace/ \"strace home page\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwookietreiber%2Fstrace-analyzer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwookietreiber%2Fstrace-analyzer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwookietreiber%2Fstrace-analyzer/lists"}