Write CPU and mem profiles from site benchmark script
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 2 Jun 2017 07:21:51 +0000 (09:21 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 2 Jun 2017 07:38:09 +0000 (09:38 +0200)
benchSite.sh

index 78a01c6ab836401b8bf276bc1ad8262278f4a389..8130559f5d413fc925ef2e8099167bc7208ccf8c 100755 (executable)
@@ -6,4 +6,4 @@
 
 echo "Running with BenchmarkSiteBuilding/${1}"
 
-go test -run="NONE" -bench="BenchmarkSiteBuilding/${1}$" -test.benchmem=true ./hugolib
\ No newline at end of file
+go test -run="NONE" -bench="BenchmarkSiteBuilding/${1}$" -test.benchmem=true ./hugolib -memprofile mem.prof -cpuprofile cpu.prof
\ No newline at end of file