Command Line Reference

The Samplepath Analysis Toolkit

1 Invocation

This tool generates finite-window Little’s Law charts from an CSV file containing id, start_ts, end_ts, and optionally a class column. It produces a full set of long run samplepath flow-metrics charts and writes them under an output directory.

Invoke it on the command line with

samplepath <csv-file> [options]

2 Options

CSV Parsing


Data Filters

Drop rows from the CSV before running the analysis. Useful for isolating subprocesses in the main file. Use with --scenario to save subprocess results.


Outlier Trimming

Remove outliers to see whether the remaining process converges.


Lambda Fine Tuning

Sometimes it helps to drop early points in the λ(T) chart so the remainder displays on a more meaningful scale.


Convergence Thresholds


Output Configuration


What the command does

  1. Parse CLI arguments
  2. Create the output directory structure
  3. Copy input CSV under scenario
  4. Write CLI parameters into the scenario folder
  5. Run the sample-path analysis
  6. Generate the charts and write to the output directory.
  7. Print paths to generated charts

Example

samplepath events.csv \
  --completed \
  --outlier-iqr 1.5 \
  --lambda-pctl 99 \
  --output-dir charts \
  --scenario weekly_report \
  --clean

3 Inputs and Outputs

Input Format

The input format is simple.

The csv requires three columns

Additionally you may pass any other columns. They are all ignored for now, except for a column called class which you can use to filter results by event/item type.

Results and charts are saved to the output directory as follows:

See the CLI Documentation for the full list of command line options.

Output Layout

For input events.csv, output is organized as:

<output-dir>/
└── events/
    └── <scenario>/                 # e.g., latest
        ├── input/                  # input snapshots
        ├── core/                   # core metrics & tables
        ├── convergence/            # limit estimates & diagnostics
        ├── convergence/panels/     # multi-panel figures
        ├── stability/panels/       # stability/variance panels
        ├── advanced/               # optional deep-dive charts
        └── misc/                   # ancillary artifacts

--

A complete reference to the charts produced can be found in The Chart Reference.