1 // Copyright 2009 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
12 // Note: Called by runtime/pprof in addition to runtime code.
13 func tickspersecond() int64 {
14 r := int64(atomicload64(&ticks.val))
29 r = (c1 - c0) * 1000 * 1000 * 1000 / (t1 - t0)
33 atomicstore64(&ticks.val, uint64(r))
39 func makeStringSlice(n int) []string {
40 return make([]string, n)