kubo/test/3nodetest/bin/save_profiling_data.sh
shuangcui 0bdfe94272
docs: remove repetitive words (#10370)
Signed-off-by: shuangcui <fliter@qq.com>
2024-03-19 12:10:34 +01:00

19 lines
750 B
Bash

#!/bin/sh
for container in 3nodetest_bootstrap_1 3nodetest_client_1 3nodetest_server_1; do
# ipfs binary is required by `go tool pprof`
docker cp $container:/go/bin/ipfs build/profiling_data_$container
done
# since the nodes are executed with the --debug flag, profiling data is written
# to the working dir. by default, the working dir is /go.
for container in 3nodetest_bootstrap_1 3nodetest_client_1 3nodetest_server_1; do
docker cp $container:/go/ipfs.cpuprof build/profiling_data_$container
done
# TODO get memprof from client (client daemon isn't terminated, so memprof isn't retrieved)
for container in 3nodetest_bootstrap_1 3nodetest_server_1; do
docker cp $container:/go/ipfs.memprof build/profiling_data_$container
done