master
sh 18 lines 750 Bytes
Raw
1 #!/bin/sh
2
3 for container in 3nodetest_bootstrap_1 3nodetest_client_1 3nodetest_server_1; do
4 # ipfs binary is required by `go tool pprof`
5 docker cp $container:/go/bin/ipfs build/profiling_data_$container
6 done
7
8 # since the nodes are executed with the --debug flag, profiling data is written
9 # to the working dir. by default, the working dir is /go.
10
11 for container in 3nodetest_bootstrap_1 3nodetest_client_1 3nodetest_server_1; do
12 docker cp $container:/go/ipfs.cpuprof build/profiling_data_$container
13 done
14
15 # TODO get memprof from client (client daemon isn't terminated, so memprof isn't retrieved)
16 for container in 3nodetest_bootstrap_1 3nodetest_server_1; do
17 docker cp $container:/go/ipfs.memprof build/profiling_data_$container
18 done