Merge feat/project-setup into dev
This commit is contained in:
@@ -0,0 +1,67 @@
|
||||
nsec, read_slat_ns_count, read_slat_ns_cumulative, read_slat_ns_percentile, read_clat_ns_count, read_clat_ns_cumulative, read_clat_ns_percentile, read_lat_ns_count, read_lat_ns_cumulative, read_lat_ns_percentile, write_slat_ns_count, write_slat_ns_cumulative, write_slat_ns_percentile, write_clat_ns_count, write_clat_ns_cumulative, write_clat_ns_percentile, write_lat_ns_count, write_lat_ns_cumulative, write_lat_ns_percentile, trim_slat_ns_count, trim_slat_ns_cumulative, trim_slat_ns_percentile, trim_clat_ns_count, trim_clat_ns_cumulative, trim_clat_ns_percentile, trim_lat_ns_count, trim_lat_ns_cumulative, trim_lat_ns_percentile,
|
||||
19791872, , , , 1, 1, 0.00016775708773695687, , , , , , , , , , , , , , , , , , , , , ,
|
||||
22413312, , , , 4, 5, 0.0008387854386847844, , , , , , , , , , , , , , , , , , , , , ,
|
||||
22675456, , , , 9, 14, 0.0023485992283173965, , , , , , , , , , , , , , , , , , , , , ,
|
||||
22937600, , , , 2, 16, 0.00268411340379131, , , , , , , , , , , , , , , , , , , , , ,
|
||||
23461888, , , , 2, 18, 0.003019627579265224, , , , , , , , , , , , , , , , , , , , , ,
|
||||
23724032, , , , 7, 25, 0.004193927193423922, , , , , , , , , , , , , , , , , , , , , ,
|
||||
23986176, , , , 14, 39, 0.006542526421741319, , , , , , , , , , , , , , , , , , , , , ,
|
||||
24248320, , , , 1, 40, 0.006710283509478276, , , , , , , , , , , , , , , , , , , , , ,
|
||||
24772608, , , , 2, 42, 0.007045797684952189, , , , , , , , , , , , , , , , , , , , , ,
|
||||
25034752, , , , 2, 44, 0.007381311860426103, , , , , , , , , , , , , , , , , , , , , ,
|
||||
25296896, , , , 4, 48, 0.00805234021137393, , , , , , , , , , , , , , , , , , , , , ,
|
||||
25559040, , , , 8, 56, 0.009394396913269586, , , , , , , , , , , , , , , , , , , , , ,
|
||||
25821184, , , , 9, 65, 0.010904210702902198, , , , , , , , , , , , , , , , , , , , , ,
|
||||
26083328, , , , 9, 74, 0.012414024492534809, , , , , , , , , , , , , , , , , , , , , ,
|
||||
26345472, , , , 16, 90, 0.01509813789632612, , , , , , , , , , , , , , , , , , , , , ,
|
||||
26607616, , , , 10, 100, 0.016775708773695688, , , , , , , , , , , , , , , , , , , , , ,
|
||||
26869760, , , , 34, 134, 0.022479449756752222, , , , , , , , , , , , , , , , , , , , , ,
|
||||
27131904, , , , 38, 172, 0.028854219090756583, , , , , , , , , , , , , , , , , , , , , ,
|
||||
27394048, , , , 49, 221, 0.037074316389867475, , , , , , , , , , , , , , , , , , , , , ,
|
||||
27656192, , , , 57, 278, 0.04663647039087401, , , , , , , , , , , , , , , , , , , , , ,
|
||||
27918336, , , , 90, 368, 0.061734608287200135, , , , , , , , , , , , , , , , , , , , , ,
|
||||
28180480, , , , 91, 459, 0.0770005032712632, , , , , , , , , , , , , , , , , , , , , ,
|
||||
28442624, , , , 105, 564, 0.09461499748364369, , , , , , , , , , , , , , , , , , , , , ,
|
||||
28704768, , , , 149, 713, 0.11961080355645026, , , , , , , , , , , , , , , , , , , , , ,
|
||||
28966912, , , , 152, 865, 0.1451098808924677, , , , , , , , , , , , , , , , , , , , , ,
|
||||
29229056, , , , 170, 1035, 0.17362858580775037, , , , , , , , , , , , , , , , , , , , , ,
|
||||
29491200, , , , 183, 1218, 0.20432813286361348, , , , , , , , , , , , , , , , , , , , , ,
|
||||
29753344, , , , 171, 1389, 0.23301459486663312, , , , , , , , , , , , , , , , , , , , , ,
|
||||
30015488, , , , 174, 1563, 0.2622043281328636, , , , , , , , , , , , , , , , , , , , , ,
|
||||
30277632, , , , 187, 1750, 0.2935749035396745, , , , , , , , , , , , , , , , , , , , , ,
|
||||
30539776, , , , 158, 1908, 0.32008052340211374, , , , , , , , , , , , , , , , , , , , , ,
|
||||
30801920, , , , 154, 2062, 0.3459151149136051, , , , , , , , , , , , , , , , , , , , , ,
|
||||
31064064, , , , 167, 2229, 0.3739305485656769, , , , , , , , , , , , , , , , , , , , , ,
|
||||
31326208, , , , 174, 2403, 0.4031202818319074, , , , , , , , , , , , , , , , , , , , , ,
|
||||
31588352, , , , 175, 2578, 0.43247777218587485, , , , , , , , , , , , , , , , , , , , , ,
|
||||
31850496, , , , 174, 2752, 0.46166750545210533, , , , , , , , , , , , , , , , , , , , , ,
|
||||
32112640, , , , 162, 2914, 0.4888441536654924, , , , , , , , , , , , , , , , , , , , , ,
|
||||
32374784, , , , 162, 3076, 0.5160208018788793, , , , , , , , , , , , , , , , , , , , , ,
|
||||
32636928, , , , 209, 3285, 0.5510820332159033, , , , , , , , , , , , , , , , , , , , , ,
|
||||
32899072, , , , 168, 3453, 0.5792652239557121, , , , , , , , , , , , , , , , , , , , , ,
|
||||
33161216, , , , 188, 3641, 0.6108035564502601, , , , , , , , , , , , , , , , , , , , , ,
|
||||
33423360, , , , 162, 3803, 0.637980204663647, , , , , , , , , , , , , , , , , , , , , ,
|
||||
33816576, , , , 324, 4127, 0.692333501090421, , , , , , , , , , , , , , , , , , , , , ,
|
||||
34340864, , , , 352, 4479, 0.7513839959738299, , , , , , , , , , , , , , , , , , , , , ,
|
||||
34865152, , , , 315, 4794, 0.8042274786109713, , , , , , , , , , , , , , , , , , , , , ,
|
||||
35389440, , , , 291, 5085, 0.8530447911424258, , , , , , , , , , , , , , , , , , , , , ,
|
||||
35913728, , , , 259, 5344, 0.8964938768662976, , , , , , , , , , , , , , , , , , , , , ,
|
||||
36438016, , , , 157, 5501, 0.9228317396409998, , , , , , , , , , , , , , , , , , , , , ,
|
||||
36962304, , , , 98, 5599, 0.9392719342392216, , , , , , , , , , , , , , , , , , , , , ,
|
||||
37486592, , , , 75, 5674, 0.9518537158194934, , , , , , , , , , , , , , , , , , , , , ,
|
||||
38010880, , , , 26, 5700, 0.9562154001006542, , , , , , , , , , , , , , , , , , , , , ,
|
||||
38535168, , , , 22, 5722, 0.9599060560308673, , , , , , , , , , , , , , , , , , , , , ,
|
||||
39059456, , , , 25, 5747, 0.9640999832242912, , , , , , , , , , , , , , , , , , , , , ,
|
||||
39583744, , , , 17, 5764, 0.9669518537158195, , , , , , , , , , , , , , , , , , , , , ,
|
||||
40108032, , , , 26, 5790, 0.9713135379969804, , , , , , , , , , , , , , , , , , , , , ,
|
||||
40632320, , , , 23, 5813, 0.9751719510149304, , , , , , , , , , , , , , , , , , , , , ,
|
||||
41156608, , , , 18, 5831, 0.9781915785941956, , , , , , , , , , , , , , , , , , , , , ,
|
||||
41680896, , , , 21, 5852, 0.9817144774366717, , , , , , , , , , , , , , , , , , , , , ,
|
||||
42205184, , , , 22, 5874, 0.9854051333668847, , , , , , , , , , , , , , , , , , , , , ,
|
||||
42729472, , , , 15, 5889, 0.9879214896829391, , , , , , , , , , , , , , , , , , , , , ,
|
||||
43253760, , , , 18, 5907, 0.9909411172622044, , , , , , , , , , , , , , , , , , , , , ,
|
||||
43778048, , , , 25, 5932, 0.9951350444556283, , , , , , , , , , , , , , , , , , , , , ,
|
||||
44302336, , , , 15, 5947, 0.9976514007716826, , , , , , , , , , , , , , , , , , , , , ,
|
||||
44826624, , , , 8, 5955, 0.9989934574735783, , , , , , , , , , , , , , , , , , , , , ,
|
||||
45350912, , , , 3, 5958, 0.9994967287367891, , , , , , , , , , , , , , , , , , , , , ,
|
||||
45875200, , , , 3, 5961, 1.0, , , , , , , , , , , , , , , , , , , , , ,
|
||||
|
Binary file not shown.
|
After Width: | Height: | Size: 56 KiB |
@@ -0,0 +1,68 @@
|
||||
nsec, read_slat_ns_count, read_slat_ns_cumulative, read_slat_ns_percentile, read_clat_ns_count, read_clat_ns_cumulative, read_clat_ns_percentile, read_lat_ns_count, read_lat_ns_cumulative, read_lat_ns_percentile, write_slat_ns_count, write_slat_ns_cumulative, write_slat_ns_percentile, write_clat_ns_count, write_clat_ns_cumulative, write_clat_ns_percentile, write_lat_ns_count, write_lat_ns_cumulative, write_lat_ns_percentile, trim_slat_ns_count, trim_slat_ns_cumulative, trim_slat_ns_percentile, trim_clat_ns_count, trim_clat_ns_cumulative, trim_clat_ns_percentile, trim_lat_ns_count, trim_lat_ns_cumulative, trim_lat_ns_percentile,
|
||||
22151168, , , , 3, 3, 0.00025161452654533256, , , , , , , , , , , , , , , , , , , , , ,
|
||||
22413312, , , , 4, 7, 0.0005871005619391093, , , , , , , , , , , , , , , , , , , , , ,
|
||||
22675456, , , , 8, 15, 0.0012580726327266628, , , , , , , , , , , , , , , , , , , , , ,
|
||||
22937600, , , , 5, 20, 0.0016774301769688837, , , , , , , , , , , , , , , , , , , , , ,
|
||||
23461888, , , , 2, 22, 0.001845173194665772, , , , , , , , , , , , , , , , , , , , , ,
|
||||
23724032, , , , 5, 27, 0.002264530738907993, , , , , , , , , , , , , , , , , , , , , ,
|
||||
23986176, , , , 7, 34, 0.0028516313008471023, , , , , , , , , , , , , , , , , , , , , ,
|
||||
25034752, , , , 3, 37, 0.0031032458273924346, , , , , , , , , , , , , , , , , , , , , ,
|
||||
25296896, , , , 1, 38, 0.003187117336240879, , , , , , , , , , , , , , , , , , , , , ,
|
||||
25559040, , , , 4, 42, 0.003522603371634656, , , , , , , , , , , , , , , , , , , , , ,
|
||||
25821184, , , , 2, 44, 0.003690346389331544, , , , , , , , , , , , , , , , , , , , , ,
|
||||
26083328, , , , 10, 54, 0.004529061477815986, , , , , , , , , , , , , , , , , , , , , ,
|
||||
26345472, , , , 15, 69, 0.005787134110542649, , , , , , , , , , , , , , , , , , , , , ,
|
||||
26607616, , , , 22, 91, 0.007632307305208421, , , , , , , , , , , , , , , , , , , , , ,
|
||||
26869760, , , , 19, 110, 0.00922586597332886, , , , , , , , , , , , , , , , , , , , , ,
|
||||
27131904, , , , 35, 145, 0.012161368783024406, , , , , , , , , , , , , , , , , , , , , ,
|
||||
27394048, , , , 60, 205, 0.017193659313931058, , , , , , , , , , , , , , , , , , , , , ,
|
||||
27656192, , , , 53, 258, 0.0216388492828986, , , , , , , , , , , , , , , , , , , , , ,
|
||||
27918336, , , , 78, 336, 0.028180826973077246, , , , , , , , , , , , , , , , , , , , , ,
|
||||
28180480, , , , 90, 426, 0.03572926276943722, , , , , , , , , , , , , , , , , , , , , ,
|
||||
28442624, , , , 128, 554, 0.046464815902038076, , , , , , , , , , , , , , , , , , , , , ,
|
||||
28704768, , , , 174, 728, 0.061058458441667365, , , , , , , , , , , , , , , , , , , , , ,
|
||||
28966912, , , , 209, 937, 0.0785876037909922, , , , , , , , , , , , , , , , , , , , , ,
|
||||
29229056, , , , 222, 1159, 0.09720707875534682, , , , , , , , , , , , , , , , , , , , , ,
|
||||
29491200, , , , 250, 1409, 0.11817495596745785, , , , , , , , , , , , , , , , , , , , , ,
|
||||
29753344, , , , 310, 1719, 0.14417512371047556, , , , , , , , , , , , , , , , , , , , , ,
|
||||
30015488, , , , 289, 2008, 0.1684139897676759, , , , , , , , , , , , , , , , , , , , , ,
|
||||
30277632, , , , 325, 2333, 0.19567223014342028, , , , , , , , , , , , , , , , , , , , , ,
|
||||
30539776, , , , 341, 2674, 0.22427241466073974, , , , , , , , , , , , , , , , , , , , , ,
|
||||
30801920, , , , 338, 3012, 0.2526209846515139, , , , , , , , , , , , , , , , , , , , , ,
|
||||
31064064, , , , 352, 3364, 0.28214375576616624, , , , , , , , , , , , , , , , , , , , , ,
|
||||
31326208, , , , 368, 3732, 0.3130084710223937, , , , , , , , , , , , , , , , , , , , , ,
|
||||
31588352, , , , 310, 4042, 0.3390086387654114, , , , , , , , , , , , , , , , , , , , , ,
|
||||
31850496, , , , 314, 4356, 0.3653442925438229, , , , , , , , , , , , , , , , , , , , , ,
|
||||
32112640, , , , 370, 4726, 0.3963767508177472, , , , , , , , , , , , , , , , , , , , , ,
|
||||
32374784, , , , 377, 5103, 0.4279963096536107, , , , , , , , , , , , , , , , , , , , , ,
|
||||
32636928, , , , 346, 5449, 0.45701585171517234, , , , , , , , , , , , , , , , , , , , , ,
|
||||
32899072, , , , 349, 5798, 0.48628700830327937, , , , , , , , , , , , , , , , , , , , , ,
|
||||
33161216, , , , 334, 6132, 0.5143000922586597, , , , , , , , , , , , , , , , , , , , , ,
|
||||
33423360, , , , 313, 6445, 0.5405518745282227, , , , , , , , , , , , , , , , , , , , , ,
|
||||
33816576, , , , 740, 7185, 0.6026167910760715, , , , , , , , , , , , , , , , , , , , , ,
|
||||
34340864, , , , 724, 7909, 0.663339763482345, , , , , , , , , , , , , , , , , , , , , ,
|
||||
34865152, , , , 653, 8562, 0.7181078587603791, , , , , , , , , , , , , , , , , , , , , ,
|
||||
35389440, , , , 666, 9228, 0.7739662836534429, , , , , , , , , , , , , , , , , , , , , ,
|
||||
35913728, , , , 584, 9812, 0.8229472448209343, , , , , , , , , , , , , , , , , , , , , ,
|
||||
36438016, , , , 499, 10311, 0.864799127736308, , , , , , , , , , , , , , , , , , , , , ,
|
||||
36962304, , , , 399, 10710, 0.8982638597668372, , , , , , , , , , , , , , , , , , , , , ,
|
||||
37486592, , , , 298, 11008, 0.9232575694036735, , , , , , , , , , , , , , , , , , , , , ,
|
||||
38010880, , , , 192, 11200, 0.9393608991025748, , , , , , , , , , , , , , , , , , , , , ,
|
||||
38535168, , , , 108, 11308, 0.9484190220582068, , , , , , , , , , , , , , , , , , , , , ,
|
||||
39059456, , , , 71, 11379, 0.9543738991864463, , , , , , , , , , , , , , , , , , , , , ,
|
||||
39583744, , , , 57, 11436, 0.9591545751908077, , , , , , , , , , , , , , , , , , , , , ,
|
||||
40108032, , , , 47, 11483, 0.9630965361066846, , , , , , , , , , , , , , , , , , , , , ,
|
||||
40632320, , , , 46, 11529, 0.966954625513713, , , , , , , , , , , , , , , , , , , , , ,
|
||||
41156608, , , , 42, 11571, 0.9704772288853476, , , , , , , , , , , , , , , , , , , , , ,
|
||||
41680896, , , , 38, 11609, 0.9736643462215885, , , , , , , , , , , , , , , , , , , , , ,
|
||||
42205184, , , , 38, 11647, 0.9768514635578294, , , , , , , , , , , , , , , , , , , , , ,
|
||||
42729472, , , , 47, 11694, 0.9807934244737063, , , , , , , , , , , , , , , , , , , , , ,
|
||||
43253760, , , , 37, 11731, 0.9838966703010987, , , , , , , , , , , , , , , , , , , , , ,
|
||||
43778048, , , , 51, 11782, 0.9881741172523694, , , , , , , , , , , , , , , , , , , , , ,
|
||||
44302336, , , , 40, 11822, 0.9915289776063071, , , , , , , , , , , , , , , , , , , , , ,
|
||||
44826624, , , , 41, 11863, 0.9949677094690933, , , , , , , , , , , , , , , , , , , , , ,
|
||||
45350912, , , , 29, 11892, 0.9973999832256982, , , , , , , , , , , , , , , , , , , , , ,
|
||||
45875200, , , , 16, 11908, 0.9987419273672733, , , , , , , , , , , , , , , , , , , , , ,
|
||||
46399488, , , , 10, 11918, 0.9995806424557577, , , , , , , , , , , , , , , , , , , , , ,
|
||||
46923776, , , , 4, 11922, 0.9999161284911515, , , , , , , , , , , , , , , , , , , , , ,
|
||||
73924608, , , , 1, 11923, 1.0, , , , , , , , , , , , , , , , , , , , , ,
|
||||
|
@@ -0,0 +1,53 @@
|
||||
[build-system]
|
||||
requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
|
||||
[project]
|
||||
name = "disk-checker"
|
||||
version = "0.1.0"
|
||||
description = "Disk benchmarking and latency visualization tool"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.10"
|
||||
dependencies = [
|
||||
"pandas>=2.0",
|
||||
"numpy>=1.24",
|
||||
"matplotlib>=3.7",
|
||||
"fastapi>=0.100",
|
||||
"uvicorn[standard]>=0.23",
|
||||
"python-multipart>=0.0.6",
|
||||
]
|
||||
|
||||
[project.optional-dependencies]
|
||||
dev = [
|
||||
"pytest>=7.0",
|
||||
"pytest-asyncio>=0.21",
|
||||
"pytest-cov>=4.0",
|
||||
"black>=23.0",
|
||||
"ruff>=0.1.0",
|
||||
"mypy>=1.0",
|
||||
]
|
||||
|
||||
[project.scripts]
|
||||
disk-checker = "disk_checker.scripts.cli:main"
|
||||
disk-checker-serve = "disk_checker.scripts.serve:main"
|
||||
|
||||
[tool.hatch.build.targets.wheel]
|
||||
packages = ["src/disk_checker"]
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
testpaths = ["tests"]
|
||||
python_files = ["test_*.py"]
|
||||
python_functions = ["test_*"]
|
||||
|
||||
[tool.black]
|
||||
line-length = 100
|
||||
target-version = ["py310"]
|
||||
|
||||
[tool.ruff]
|
||||
line-length = 100
|
||||
target-version = "py310"
|
||||
|
||||
[tool.mypy]
|
||||
python_version = "3.10"
|
||||
warn_return_any = true
|
||||
warn_unused_configs = true
|
||||
@@ -0,0 +1,97 @@
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
CLI entry point for disk-checker.
|
||||
|
||||
Usage:
|
||||
python -m disk_checker scan_latency.csv
|
||||
disk-checker scan_latency.csv --metric read_clat --unit ms
|
||||
"""
|
||||
|
||||
import argparse
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
from disk_checker.core.extractor import load_latency_csv
|
||||
from disk_checker.core.helpers import percentile_table
|
||||
from disk_checker.plotting.plots import generate_plot
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(
|
||||
description="Plot fio json+ wide-format latency CSV."
|
||||
)
|
||||
parser.add_argument("csv", help="CSV from fio_jsonplus_clat2csv")
|
||||
parser.add_argument("--metric", default=None,
|
||||
help="Metric to plot (e.g. read_clat). "
|
||||
"If omitted, the metric with the most I/Os is used.")
|
||||
parser.add_argument("--all-metrics", action="store_true",
|
||||
help="Plot every metric that has data")
|
||||
parser.add_argument("--unit", choices=["ns", "us", "ms", "s"], default="us",
|
||||
help="X-axis latency unit (default: us)")
|
||||
parser.add_argument("--log-y", action="store_true")
|
||||
parser.add_argument("--log-x", action="store_true")
|
||||
parser.add_argument("--cdf", action="store_true",
|
||||
help="Add a CDF subplot below the histogram")
|
||||
parser.add_argument("--cdf-only", action="store_true")
|
||||
parser.add_argument("--normalize", action="store_true",
|
||||
help="Normalize histogram to a probability density")
|
||||
parser.add_argument("--percentiles", default="50,90,99,99.9,99.99")
|
||||
parser.add_argument("--no-percentiles", action="store_true")
|
||||
parser.add_argument("--output", "-o", default=None)
|
||||
parser.add_argument("--dpi", type=int, default=150)
|
||||
parser.add_argument("--title", default="")
|
||||
parser.add_argument("--show", action="store_true")
|
||||
args = parser.parse_args()
|
||||
|
||||
if not Path(args.csv).is_file():
|
||||
sys.exit(f"error: file not found: {args.csv}")
|
||||
|
||||
df = load_latency_csv(args.csv)
|
||||
if df.empty:
|
||||
sys.exit("error: no latency data in CSV")
|
||||
|
||||
available = sorted(df["metric"].unique())
|
||||
print("Metrics with data:", ", ".join(available))
|
||||
|
||||
if args.all_metrics:
|
||||
metrics = available
|
||||
elif args.metric:
|
||||
if args.metric not in available:
|
||||
sys.exit(f"error: metric {args.metric!r} not in {available}")
|
||||
metrics = [args.metric]
|
||||
else:
|
||||
totals = df.groupby("metric")["count"].sum().sort_values(ascending=False)
|
||||
metrics = [totals.index[0]]
|
||||
print(f"Auto-selected metric: {metrics[0]}")
|
||||
|
||||
output = args.output or f"{Path(args.csv).stem}_latency.png"
|
||||
generate_plot(
|
||||
df=df,
|
||||
metrics=metrics,
|
||||
output_path=Path(output),
|
||||
unit=args.unit,
|
||||
log_y=args.log_y,
|
||||
log_x=args.log_x,
|
||||
normalize=args.normalize,
|
||||
show_cdf=args.cdf,
|
||||
cdf_only=args.cdf_only,
|
||||
title=args.title,
|
||||
dpi=args.dpi,
|
||||
)
|
||||
print(f"Saved plot to {output}")
|
||||
|
||||
if not args.no_percentiles:
|
||||
try:
|
||||
pcts = [float(x) for x in args.percentiles.split(",") if x.strip()]
|
||||
except ValueError:
|
||||
sys.exit("error: --percentiles must be comma-separated numbers")
|
||||
for m in metrics:
|
||||
print(percentile_table(df, m, args.unit, pcts))
|
||||
|
||||
if args.show:
|
||||
import matplotlib.pyplot as plt
|
||||
plt.show()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,3 @@
|
||||
"""Disk Checker - Disk benchmarking and latency visualization tool."""
|
||||
|
||||
__version__ = "0.1.0"
|
||||
@@ -0,0 +1,6 @@
|
||||
"""Allow running disk-checker as a module: python -m disk_checker"""
|
||||
|
||||
from disk_checker.scripts.cli import main
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,14 @@
|
||||
"""Core business logic module."""
|
||||
|
||||
from .extractor import load_latency_csv
|
||||
from .converter import to_unit, UNIT_FACTORS, UNIT_LABELS
|
||||
from .helpers import human_count, percentile_table
|
||||
|
||||
__all__ = [
|
||||
"load_latency_csv",
|
||||
"to_unit",
|
||||
"UNIT_FACTORS",
|
||||
"UNIT_LABELS",
|
||||
"human_count",
|
||||
"percentile_table",
|
||||
]
|
||||
@@ -0,0 +1,5 @@
|
||||
"""Plotting module for disk latency visualization."""
|
||||
|
||||
from .plots import draw_histogram, draw_cdf, generate_plot
|
||||
|
||||
__all__ = ["draw_histogram", "draw_cdf", "generate_plot"]
|
||||
@@ -0,0 +1 @@
|
||||
"""Web backend module for disk-checker API."""
|
||||
@@ -0,0 +1 @@
|
||||
"""Tests for disk-checker."""
|
||||
Reference in New Issue
Block a user