diff options
author | Cameron Moore <moorereason@gmail.com> | 2017-09-26 13:03:04 -0500 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-09-26 20:03:04 +0200 |
commit | b4a14c25fe85c41b79497be27ead128502a4dd7b (patch) | |
tree | 99cdbb0d9ab7a7adf137ce492773750aeec8e431 /hugolib/hugo_sites_build.go | |
parent | cb8eb472602754b310eaf7a10271149d1e1f5d75 (diff) |
metrics: Add simple template metrics feature
Diffstat (limited to 'hugolib/hugo_sites_build.go')
-rw-r--r-- | hugolib/hugo_sites_build.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hugolib/hugo_sites_build.go b/hugolib/hugo_sites_build.go index fa0eac702..f73989908 100644 --- a/hugolib/hugo_sites_build.go +++ b/hugolib/hugo_sites_build.go @@ -25,6 +25,10 @@ import ( // Build builds all sites. If filesystem events are provided, // this is considered to be a potential partial rebuild. func (h *HugoSites) Build(config BuildCfg, events ...fsnotify.Event) error { + if h.Metrics != nil { + h.Metrics.Reset() + } + t0 := time.Now() // Need a pointer as this may be modified. |