Documentation ¶
Index ¶
Constants ¶
View Source
const (
GcSize = 50 << 20 //默认50MB
)
Variables ¶
This section is empty.
Functions ¶
func BlockBySignal ¶
func BlockBySignal()
func BlockBySignalAndCancel ¶
func BlockBySignalAndCancel(cancel context.CancelFunc, duration time.Duration)
func RunCPUProfile ¶ added in v1.0.1
func RunCPUProfile() func()
RunCPUProfile Run starts up stuff at the beginning of a main function, and returns a function to defer until the function completes. It should be used like this:
func main() { defer sys.RunCPUProfile()() ... stuff ... }
func RunMemProfile ¶ added in v1.0.1
func RunMemProfile() func()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.