We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 213cd9d commit 3d211b8Copy full SHA for 3d211b8
bench.sh
@@ -37,6 +37,12 @@ popd >/dev/null
37
38
echo -n "PUB: "
39
bench/bench_writer/bench_writer --size=$messageSize --batch-size=$batchSize 2>&1
40
+
41
+curl -s -o cpu.pprof http://127.0.0.1:4151/debug/pprof/profile &
42
+pprof_pid=$!
43
44
echo -n "SUB: "
-bench/bench_reader/bench_reader --size=$messageSize --channel=ch 2>&1 &
-wait $!
45
+bench/bench_reader/bench_reader --size=$messageSize --channel=ch 2>&1
46
47
+echo "waiting for pprof..."
48
+wait $pprof_pid
0 commit comments