Feat: Introduce resource profiling and monitoring APIs
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:
1 parent
e280b6d0a3
commit
c0e1968654
6 files changed
+96
-18
No files matched your search
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "obikmer"
|
||||
version = "1.3.3"
|
||||
version = "1.3.4"
|
||||
edition = "2024"
|
||||
|
||||
[[bin]]
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in new issue
Block a user