Skip to content

Commit

Permalink
Benchmark: fix typos and remove spurious whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
panchoh committed Dec 4, 2018
1 parent 46e42d0 commit 1282ce1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/riot.go
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ func init() {
usageNumRequests = "Number of requests for the attack"
usageReadConcurrency = "Set read concurrency value"
usageWriteConcurrency = "Set write concurrency value"
usageOffload = "Perform reads only on %50 of the cluster size (With cluster size 2 reads will be perofmed only on follower1)"
usageOffload = "Perform reads only on %50 of the cluster size (With cluster size 2 reads will be performed only on follower1)"
usageCharts = "Create charts while executing the benchmarks. Output: graph-$testname.png"
usageOffset = "The starting version from which we start the load"
usageWantAdd = "Execute add benchmark"
Expand Down
6 changes: 2 additions & 4 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 {
function check_profiling {
while ps ux | grep [p]prof > /dev/null
do
echo "Profiler running"
Expand All @@ -29,7 +29,7 @@ function 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 '},')
# Avoid empty version beacause preload process is not already started...
# Avoid empty version because preload process is not already started...
: ${BALLOON_VERSION:=0}
go tool pprof -proto -sample_index=alloc_objects -output results/$(date +%s)-${BALLOON_VERSION}-mem-alloc-objects.pb.gz http://localhost:6060/debug/pprof/heap
go tool pprof -proto -sample_index=alloc_space -output results/$(date +%s)-${BALLOON_VERSION}-mem-alloc-space-top.pb.gz http://localhost:6060/debug/pprof/heap
Expand All @@ -45,5 +45,3 @@ mkdir -p results
echo "PROFILING_RATE_HZ=${PROFILING_RATE_HZ}s"
profiler_cmd
check_profiling


0 comments on commit 1282ce1

Please sign in to comment.