1
0
Fork 0
forked from lthn/blockchain
blockchain/utils/munin_plugins/performance_transaction_inp_loop

47 lines
1.9 KiB
Text
Raw Normal View History

2018-12-27 18:50:45 +03:00
#!/bin/bash
case $1 in
config)
cat <<'EOM'
graph_title performance_tranactions_inp.every_inp
graph_vlabel mcs
2021-06-17 15:53:22 +02:00
graph_category transactions.inp
2018-12-27 18:50:45 +03:00
tx_check_inputs_loop_kimage_check.label kimage_check
tx_check_inputs_loop_kimage_check.draw AREA
tx_check_inputs_loop_ch_in_val_sig.label ch_in_val_sig
tx_check_inputs_loop_ch_in_val_sig.draw STACK
tx_check_inputs_loop_scan_outputkeys_get_item_size.label scan_keys_get_item_size
tx_check_inputs_loop_scan_outputkeys_get_item_size.draw STACK
tx_check_inputs_loop_scan_outputkeys_relative_to_absolute.label scan_keys_relative_to_absolute
tx_check_inputs_loop_scan_outputkeys_relative_to_absolute.draw STACK
tx_check_inputs_loop_scan_outputkeys_loop.label scan_keys_loop
tx_check_inputs_loop_scan_outputkeys_loop.draw STACK
EOM
exit 0;;
esac
2019-01-21 21:19:50 +03:00
CONN_TOOL_OUT="$(connectivity_tool --ip=127.0.0.1 --rpc-port=$ZANO_RPC_PORT --timeout=1000 --getinfo-flags-hex=0x0000000000010000 --rpc-get-daemon-info)"
2018-12-27 18:50:45 +03:00
# printf "$CONN_TOOL_OUT"
printf "tx_check_inputs_loop_kimage_check.value "
PARSED_RES="$(printf "$CONN_TOOL_OUT" | grep tx_check_inputs_loop_kimage_check | cut -d ' ' -f2)"
printf "$PARSED_RES\n"
printf "tx_check_inputs_loop_ch_in_val_sig.value "
PARSED_RES="$(printf "$CONN_TOOL_OUT" | grep tx_check_inputs_loop_ch_in_val_sig | cut -d ' ' -f2)"
printf "$PARSED_RES\n"
printf "tx_check_inputs_loop_scan_outputkeys_get_item_size.value "
PARSED_RES="$(printf "$CONN_TOOL_OUT" | grep tx_check_inputs_loop_scan_outputkeys_get_item_size | cut -d ' ' -f2)"
printf "$PARSED_RES\n"
printf "tx_check_inputs_loop_scan_outputkeys_relative_to_absolute.value "
PARSED_RES="$(printf "$CONN_TOOL_OUT" | grep tx_check_inputs_loop_scan_outputkeys_relative_to_absolute | cut -d ' ' -f2)"
printf "$PARSED_RES\n"
printf "tx_check_inputs_loop_scan_outputkeys_loop.value "
PARSED_RES="$(printf "$CONN_TOOL_OUT" | grep tx_check_inputs_loop_scan_outputkeys_loop | cut -d ' ' -f2)"
printf "$PARSED_RES\n"