mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 23:07:18 +03:00
fsprobe: add fsprobe crate
Summary: This utility will be used to measure latency and throughput of EdenFS Reviewed By: kulshrax Differential Revision: D29824747 fbshipit-source-id: f5298125bdaa16ccd52cb00a6bc3cd544c0967b7
This commit is contained in:
parent
277f796db9
commit
b7f8d625bf
7
eden/scm/exec/fsprobe/Cargo.toml
Normal file
7
eden/scm/exec/fsprobe/Cargo.toml
Normal file
@ -0,0 +1,7 @@
|
||||
[package]
|
||||
name = "fsprobe"
|
||||
version = "0.1.0"
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
structopt = "0.3"
|
20
eden/scm/exec/fsprobe/src/bin/main.rs
Normal file
20
eden/scm/exec/fsprobe/src/bin/main.rs
Normal file
@ -0,0 +1,20 @@
|
||||
/*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This software may be used and distributed according to the terms of the
|
||||
* GNU General Public License version 2.
|
||||
*/
|
||||
|
||||
use std::path::PathBuf;
|
||||
|
||||
use structopt::StructOpt;
|
||||
|
||||
#[derive(StructOpt)]
|
||||
struct Cli {
|
||||
path: PathBuf,
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let args = Cli::from_args();
|
||||
println!("{:?}", args.path);
|
||||
}
|
Loading…
Reference in New Issue
Block a user