Home | History | Annotate | Download | only in debug
      1 // Copyright 2014 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.
      4 
      5 package debug
      6 
      7 import (
      8 	"time"
      9 )
     10 
     11 // Uses assembly to call corresponding runtime-internal functions.
     12 func setMaxStack(int) int
     13 func setGCPercent(int32) int32
     14 func setPanicOnFault(bool) bool
     15 func setMaxThreads(int) int
     16 
     17 // Implemented in package runtime.
     18 func readGCStats(*[]time.Duration)
     19 func freeOSMemory()
     20