Feat: Introduce resource profiling and monitoring APIs
Release / create-release (push) Successful in 2m27s
ci.yml / build (pull_request) Successful in 3m52s
Release / build-linux-x86_64 (push) Successful in 7m50s
Release / build-macos-arm64 (push) Successful in 2m0s

This change introduces a comprehensive profiling system, allowing for periodic resource usage monitoring (CPU, I/O, memory) via a background thread. It also exposes new public APIs for budget management, locking, NUMA partitioning, and progress tracking.
This commit is contained in:
Eric Coissac committed 2026-09-11 09:50:09 +02:00
1 parent e280b6d0a3
commit c0e1968654
6 files changed
+96 -18

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "obikmer"
version = "1.3.3"
version = "1.3.4"
edition = "2024"
[[bin]]
+4
View File
@@ -73,6 +73,10 @@ fn main() {
warn!("could not configure the global rayon pool: {e}");
}
// Always-on, near-zero-cost when disabled: RUST_LOG=obisys::profiler=trace
// to see periodic CPU/IO/memory snapshots on a production run.
obisys::start_profiler(std::time::Duration::from_secs(5));
match cli.command {
Commands::Index(args) => cmd::index::run(args),
Commands::Superkmer(args) => cmd::superkmer::run(args),