]> Cypherpunks repositories - gostls13.git/commit
runtime: report MemStats.PauseEnd in UNIX time
authorAustin Clements <austin@google.com>
Tue, 30 Jun 2015 22:20:13 +0000 (18:20 -0400)
committerAustin Clements <austin@google.com>
Mon, 13 Jul 2015 23:32:02 +0000 (23:32 +0000)
commitad60cd8b929553611c30b01b0f39164acc91473f
treea86d017b32334b80dd1517d9e8419c7e69a6d7f1
parent0bcdffeea6e42d57ac02f11e099652cbd69b427b
runtime: report MemStats.PauseEnd in UNIX time

Currently we report MemStats.PauseEnd in nanoseconds, but with no
particular 0 time. On Linux, the 0 time is when the host started. On
Darwin, it's the UNIX epoch. This is also inconsistent with the other
absolute time in MemStats, LastGC, which is always reported in
nanoseconds since 1970.

Fix PauseEnd so it's always reported in nanoseconds since 1970, like
LastGC.

Fixes one of the issues raised in #10323.

Change-Id: Ie2fe3169d45113992363a03b764f4e6c47e5c6a8
Reviewed-on: https://go-review.googlesource.com/11801
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: Russ Cox <rsc@golang.org>
src/runtime/malloc_test.go
src/runtime/mgc.go