mirror of https://github.com/Qortal/Brooklyn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
290 B
13 lines
290 B
3 years ago
|
#!/bin/bash
|
||
|
# SPDX-License-Identifier: GPL-2.0
|
||
|
# perf iostat
|
||
|
# Alexander Antonov <[email protected]>
|
||
|
|
||
|
if [[ "$1" == "list" ]] || [[ "$1" =~ ([a-f0-9A-F]{1,}):([a-f0-9A-F]{1,2})(,)? ]]; then
|
||
|
DELIMITER="="
|
||
|
else
|
||
|
DELIMITER=" "
|
||
|
fi
|
||
|
|
||
|
perf stat --iostat$DELIMITER$*
|