commit | 82ecff9c53baf596154c4c8c770b18adffa82fa8 | [log] [tgz] |
---|---|---|
author | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | Mon May 25 18:36:04 2015 +0900 |
committer | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | Mon May 25 18:36:04 2015 +0900 |
tree | e67aa2dd7f42d3f90d7d2fbcf849f9a0e231a353 | |
parent | 4926aea14c872263c6515267ea589af4b25e77e3 [diff] [blame] |
Show spent time for cache lookup
diff --git a/serialize.go b/serialize.go index 4c5c8ef..f244a2b 100644 --- a/serialize.go +++ b/serialize.go
@@ -560,6 +560,11 @@ } func LoadDepGraphCache(makefile string, roots []string) *DepGraph { + startTime := time.Now() + defer func() { + LogStats("Cache lookup time: %q", time.Now().Sub(startTime)) + }() + filename := GetCacheFilename(makefile, roots) if !exists(filename) { LogAlways("Cache not found")