go stubs 源码

  • 2022-07-15
  • 浏览 (838)

golang stubs 代码

文件路径:/src/runtime/debug/stubs.go

// Copyright 2014 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package debug

import (
	"time"
)

// Implemented in package runtime.
func readGCStats(*[]time.Duration)
func freeOSMemory()
func setMaxStack(int) int
func setGCPercent(int32) int32
func setPanicOnFault(bool) bool
func setMaxThreads(int) int
func setMemoryLimit(int64) int64

相关信息

go 源码目录

相关文章

go garbage 源码

go garbage_test 源码

go heapdump_test 源码

go mod 源码

go mod_test 源码

go panic_test 源码

go stack 源码

go stack_test 源码

0  赞