package
0.0.0-20241115082555-91616abce05b
Repository: https://github.com/tencentcodedog/linux-go-1.12.6.git
Documentation: pkg.go.dev

# Functions

FreeOSMemory forces a garbage collection followed by an attempt to return as much memory to the operating system as possible.
PrintStack prints to standard error the stack trace returned by runtime.Stack.
ReadBuildInfo returns the build information embedded in the running binary.
ReadGCStats reads statistics about garbage collection into stats.
SetGCPercent sets the garbage collection target percentage: a collection is triggered when the ratio of freshly allocated data to live data remaining after the previous collection reaches this percentage.
SetMaxStack sets the maximum amount of memory that can be used by a single goroutine stack.
SetMaxThreads sets the maximum number of operating system threads that the Go program can use.
SetPanicOnFault controls the runtime's behavior when a program faults at an unexpected (non-nil) address.
SetTraceback sets the amount of detail printed by the runtime in the traceback it prints before exiting due to an unrecovered panic or an internal runtime error.
Stack returns a formatted stack trace of the goroutine that calls it.
WriteHeapDump writes a description of the heap and the objects in it to the given file descriptor.

# Structs

BuildInfo represents the build information read from the running binary.
GCStats collect information about recent garbage collections.
Module represents a module.