summaryrefslogtreecommitdiffstats
path: root/commands/benchmark.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-02-05 21:30:48 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-02-05 21:30:48 +0100
commit3b596b85d1c8de74c212a3402108bfa34014ac21 (patch)
tree77522a1b838b658f489ed067f53652bacae155d6 /commands/benchmark.go
parent87ca0d0cbea19dd2c0aac44dc2731e6247a82ece (diff)
Add renderToMemory flag
Only useful for benchmark testing as the rendered content will be ... invisible.
Diffstat (limited to 'commands/benchmark.go')
-rw-r--r--commands/benchmark.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/commands/benchmark.go b/commands/benchmark.go
index f2b7964c0..c90f64516 100644
--- a/commands/benchmark.go
+++ b/commands/benchmark.go
@@ -34,6 +34,7 @@ creating a benchmark.`,
func init() {
initHugoBuilderFlags(benchmarkCmd)
+ initBenchmarkBuildingFlags(benchmarkCmd)
benchmarkCmd.Flags().StringVar(&cpuProfilefile, "cpuprofile", "", "path/filename for the CPU profile file")
benchmarkCmd.Flags().StringVar(&memProfilefile, "memprofile", "", "path/filename for the memory profile file")