Expand description
Process execution and host probing adapters for perfgate.
In clean-arch terms this is where perfgate touches the world: running child processes, collecting CPU time / RSS via platform APIs, and probing host environment metadata for mismatch detection.
Part of the perfgate workspace.
§Example
use perfgate_adapters::{StdProcessRunner, ProcessRunner, CommandSpec};
let runner = StdProcessRunner;
let spec = CommandSpec {
name: "echo".into(),
argv: vec!["hello".into()],
..Default::default()
};
let result = runner.run(&spec).unwrap();
println!("wall_ms: {}", result.wall_ms);Structs§
- Command
Spec - Command to execute.
- Fake
Process Runner - A process runner that returns pre-configured results for specific commands.
- Host
Probe Options - RunResult
- Result of a single execution.
- StdHost
Probe - StdProcess
Runner - Standard process runner using std::process::Command.
Enums§
Traits§
- Host
Probe - Host fingerprinting and metadata collection.
- Process
Runner