mirror of
https://codeberg.org/icewind/logsmash.git
synced 2026-06-03 18:14:11 +02:00
profile
This commit is contained in:
parent
5b86279b46
commit
e89f5c17f6
2 changed files with 8 additions and 1 deletions
|
|
@ -103,7 +103,7 @@
|
||||||
releaseMatrix = buildMatrix releaseTargets;
|
releaseMatrix = buildMatrix releaseTargets;
|
||||||
|
|
||||||
devShells.default = mkShell {
|
devShells.default = mkShell {
|
||||||
nativeBuildInputs = with pkgs; [msrvToolchain rustc bacon cargo-msrv cargo-insta];
|
nativeBuildInputs = with pkgs; [msrvToolchain rustc bacon cargo-msrv cargo-insta samply];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,9 @@ mod ui;
|
||||||
#[derive(Debug, Parser)]
|
#[derive(Debug, Parser)]
|
||||||
struct Args {
|
struct Args {
|
||||||
file: String,
|
file: String,
|
||||||
|
/// Collect data and exit, intended for profiling
|
||||||
|
#[arg(long)]
|
||||||
|
profile: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() -> MainResult {
|
fn main() -> MainResult {
|
||||||
|
|
@ -111,6 +114,10 @@ fn main() -> MainResult {
|
||||||
log_file: Mutex::new(log_file),
|
log_file: Mutex::new(log_file),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if args.profile {
|
||||||
|
return Ok(());
|
||||||
|
}
|
||||||
|
|
||||||
run_ui(app)?;
|
run_ui(app)?;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue