Skip to content

Commit

Permalink
Benchmark: fix function call style in shell script
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Evgeniev <[email protected]>
  • Loading branch information
panchoh and suizman committed Dec 4, 2018
1 parent 1282ce1 commit 16be7e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/start_profiler
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

echo "export PROFILING_RATE_HZ=30 (in seconds) env variable to set the default profiling delay. Default profiling rate is 30. Output: results/cpu|mem.pb.gz"

function check_profiling {
check_profiling() {
while ps ux | grep [p]prof > /dev/null
do
echo "Profiler running"
Expand All @@ -25,7 +25,7 @@ function check_profiling {
echo "Profiler stopped"
}

function profiler_cmd {
profiler_cmd() {
ELAPSED=0
while curl -s -X POST http://localhost:8080/health-check 2>&1 > /dev/null ; do
(BALLOON_VERSION=$(curl -s http://localhost:6060/debug/vars | awk -F '"version": ' '/balloon_stats/ {print $2}' | tr -d '},')
Expand Down

0 comments on commit 16be7e3

Please sign in to comment.