aboutsummaryrefslogtreecommitdiff
path: root/serialize.go
diff options
context:
space:
mode:
authorShinichiro Hamaji <shinichiro.hamaji@gmail.com>2015-05-25 18:36:04 +0900
committerShinichiro Hamaji <shinichiro.hamaji@gmail.com>2015-05-25 18:36:04 +0900
commit82ecff9c53baf596154c4c8c770b18adffa82fa8 (patch)
treee67aa2dd7f42d3f90d7d2fbcf849f9a0e231a353 /serialize.go
parent4926aea14c872263c6515267ea589af4b25e77e3 (diff)
downloadkati-82ecff9c53baf596154c4c8c770b18adffa82fa8.tar.gz
Show spent time for cache lookup
Diffstat (limited to 'serialize.go')
-rw-r--r--serialize.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/serialize.go b/serialize.go
index 4c5c8ef..f244a2b 100644
--- a/serialize.go
+++ b/serialize.go
@@ -560,6 +560,11 @@ func LoadDepGraph(filename string) *DepGraph {
}
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")