mirror of
https://github.com/golang/go
synced 2024-11-22 02:04:40 -07:00
parent
a709876767
commit
bd1690ce5e
@ -1383,9 +1383,9 @@ func indexer() {
|
|||||||
nwords, nspots := index.Size()
|
nwords, nspots := index.Size()
|
||||||
log.Stderrf("index updated (%gs, %d unique words, %d spots)", secs, nwords, nspots)
|
log.Stderrf("index updated (%gs, %d unique words, %d spots)", secs, nwords, nspots)
|
||||||
}
|
}
|
||||||
log.Stderrf("bytes=%d footprint=%d\n", runtime.MemStats.HeapAlloc, runtime.MemStats.InusePages<<12)
|
log.Stderrf("bytes=%d footprint=%d\n", runtime.MemStats.HeapAlloc, runtime.MemStats.Sys)
|
||||||
runtime.GC()
|
runtime.GC()
|
||||||
log.Stderrf("bytes=%d footprint=%d\n", runtime.MemStats.HeapAlloc, runtime.MemStats.InusePages<<12)
|
log.Stderrf("bytes=%d footprint=%d\n", runtime.MemStats.HeapAlloc, runtime.MemStats.Sys)
|
||||||
}
|
}
|
||||||
time.Sleep(1 * 60e9) // try once a minute
|
time.Sleep(1 * 60e9) // try once a minute
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user