mirror of
https://github.com/rclone/rclone.git
synced 2024-11-29 12:04:11 +08:00
13 lines
322 B
Go
13 lines
322 B
Go
|
// Package debug contains functions for dealing with runtime/debug functions across go versions
|
||
|
package debug
|
||
|
|
||
|
import (
|
||
|
"runtime/debug"
|
||
|
)
|
||
|
|
||
|
// SetGCPercent calls the runtime/debug.SetGCPercent function to set the garbage
|
||
|
// collection percentage.
|
||
|
func SetGCPercent(percent int) int {
|
||
|
return debug.SetGCPercent(percent)
|
||
|
}
|