]> Cypherpunks repositories - gostls13.git/commit
runtime: fix bug in cpu profiler
authorDmitriy Vyukov <dvyukov@google.com>
Wed, 7 May 2014 14:48:14 +0000 (18:48 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Wed, 7 May 2014 14:48:14 +0000 (18:48 +0400)
commitc0bf96e6b10976274bf5ee7813845dc0eb590816
treec58bc6d25b201a1e6272ff7c8de5f8afadea8666
parent8bc1bfb6bfeb27b64b3654af091227c89cd29300
runtime: fix bug in cpu profiler
Number of lost samples was overcounted (never reset).
Also remove unused variable (it's trivial to restore it for debugging if needed).

LGTM=iant
R=golang-codereviews, iant
CC=golang-codereviews, rsc
https://golang.org/cl/96060043
src/pkg/runtime/cpuprof.goc