Documentation ¶
Overview ¶
Package gctuner implements https://github.com/bytedance/gopkg
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMaxGCPercent ¶
func GetMaxGCPercent() uint32
GetMaxGCPercent returns the max gc percent value.
func GetMinGCPercent ¶
func GetMinGCPercent() uint32
GetMinGCPercent returns the min gc percent value.
func SetMaxGCPercent ¶
SetMaxGCPercent sets the new max gc percent value.
func SetMinGCPercent ¶
SetMinGCPercent sets the new min gc percent value.
func Tuning ¶
func Tuning(threshold uint64)
Tuning sets the threshold of heap which will be respect by gc tuner. When Tuning, the env GOGC will not be take effect. threshold: disable tuning if threshold == 0
func TuningWithAuto ¶
func TuningWithAuto(isContainer bool)
TuningWithAuto By automatic calculation of the total amount
func TuningWithFromHuman ¶
func TuningWithFromHuman(threshold string)
TuningWithFromHuman eg. "b/B", "k/K" "kb/Kb" "mb/Mb", "gb/Gb" "tb/Tb" "pb/Pb".
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.