Merge pull request #1002 from steveschnepp/dump_node

Dump node
This commit is contained in:
Steve Schnepp 2020-10-01 20:41:05 +02:00 committed by GitHub
commit e66faac0cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

13
tools/profiling/dump_node Executable file
View File

@ -0,0 +1,13 @@
#! /bin/sh
NODE="${1:-localhost}"
PORT="${2:-4949}"
{
for plugin in $(echo "list" | nc "$NODE" "$PORT" | tail -n 1)
do
echo "config $plugin"
echo "fetch $plugin"
done
echo "quit"
} | nc "$NODE" "$PORT"