diff options
author | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | 2015-05-25 18:36:04 +0900 |
---|---|---|
committer | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | 2015-05-25 18:36:04 +0900 |
commit | 82ecff9c53baf596154c4c8c770b18adffa82fa8 (patch) | |
tree | e67aa2dd7f42d3f90d7d2fbcf849f9a0e231a353 /serialize.go | |
parent | 4926aea14c872263c6515267ea589af4b25e77e3 (diff) | |
download | kati-82ecff9c53baf596154c4c8c770b18adffa82fa8.tar.gz |
Show spent time for cache lookup
Diffstat (limited to 'serialize.go')
-rw-r--r-- | serialize.go | 5 |
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") |