Summary: denet is a lightweight process monitoring tool providing real-time resource profiling of running processes. It reports CPU, memory, disk I/O, network activity, and thread usage, including recursive child monitoring, with adaptive sampling rates. denet exposes two interfaces: a CLI with colorized output and a Python API. Output format is JSONL. Each record carries performance metrics and process metadata (PID and the executed command). Structured output makes denet suitable for benchmarking and tuning data-intensive pipelines in bioinformatics and beyond. We provide CLI and API examples, including a bioinformatics workflow in Snakemake, showcasing denet's diagnostic properties. Availability and implementation: denet is open-source software released under the GPLv3 terms, and maintained at https://github.com/btraven00/denet. It is implemented in Rust, with Python bindings provided via maturin, and installs from Cargo (cargo install denet) or PyPI (pip install denet). Most functionality does not require administrative privileges, enabling use on cloud platforms, HPC clusters, and standard Linux workstations. Advanced features such as eBPF support may require elevated permissions.
翻译:摘要:denet 是一款轻量级进程监控工具,可实时分析运行进程的资源使用情况。它报告 CPU、内存、磁盘 I/O、网络活动及线程使用数据,支持递归子进程监控,并具备自适应采样率。denet 提供两种接口:带有彩色输出的命令行界面(CLI)以及 Python API。输出格式为 JSONL。每条记录包含性能指标和进程元数据(PID 及执行的命令)。结构化输出使 denet 适用于生物信息学及其他领域中数据密集型管线的基准测试与调优。我们提供了 CLI 和 API 使用示例,包括基于 Snakemake 的生物信息学工作流,展示了 denet 的诊断特性。可用性与实现:denet 是基于 GPLv3 协议发布的开源软件,托管于 https://github.com/btraven00/denet。它使用 Rust 实现,通过 maturin 提供 Python 绑定,支持通过 Cargo(cargo install denet)或 PyPI(pip install denet)安装。大部分功能无需管理员权限即可使用,适用于云平台、HPC 集群及标准 Linux 工作站。高级功能(如 eBPF 支持)可能需要提升权限。