Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cch123/gogctuner
/ functions
Functions
24 in github.com/cch123/gogctuner
⨍
Functions
24
◇
Types & classes
6
↓ 5 callers
Method
Error
(args ...interface{})
tuner.go:17
↓ 4 callers
Function
GenerateMap
(entries int)
tuner_test.go:24
↓ 2 callers
Method
Debug
(args ...interface{})
tuner.go:18
↓ 2 callers
Function
NewTuner
NewTuner set useCgroup to true if your app is in docker set percent to control the gc trigger, 0-100, 100 or upper means no limit modify default GOGC
tuner.go:105
↓ 2 callers
Function
getGOGC
(previousGOGC int, memoryLimitInPercent, memPercent float64)
tuner.go:80
↓ 1 callers
Function
RandStringRunes
(n int)
tuner_test.go:16
↓ 1 callers
Function
SetLogger
(l ILogger)
tuner.go:22
↓ 1 callers
Function
getCGroupMemoryLimit
()
util.go:78
↓ 1 callers
Function
getCurrentPercentAndChangeGOGC
()
tuner.go:61
↓ 1 callers
Function
getMemoryLimit
()
util.go:60
↓ 1 callers
Function
isCGroupV2
()
util.go:87
↓ 1 callers
Function
parseUint
default no limit copied from https://github.com/containerd/cgroups/blob/318312a373405e5e91134d8063d04d59768a1bff/utils.go#L251
util.go:21
↓ 1 callers
Function
readMemoryLimit
(cgroupPath string)
util.go:94
Method
Debug
(args ...interface{})
tuner.go:39
Method
Error
(args ...interface{})
tuner.go:35
Function
GetPreviousGOGC
GetPreviousGOGC collect GOGC
util.go:132
Function
TestGetGOGCBasics
(t *testing.T)
tuner_test.go:71
Function
TestInitDoesNotPanic
(t *testing.T)
tuner_test.go:32
Function
TestInitDoesNotPanic2
(t *testing.T)
tuner_test.go:51
Function
finalizerHandler
(f *finalizerRef)
tuner.go:95
Function
getUsageCGroup
()
util.go:39
Function
getUsageNormal
return cpu percent, mem in MB, goroutine num not use cgroup ver.
util.go:115
Function
init
()
tuner_test.go:10
Function
init
()
tuner.go:12