debug

package
v1.68.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2024 License: MIT Imports: 1 Imported by: 1

Documentation

Overview

Package debug contains functions for dealing with runtime/debug functions across go versions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetGCPercent

func SetGCPercent(percent int) int

SetGCPercent calls the runtime/debug.SetGCPercent function to set the garbage collection percentage.

func SetMemoryLimit

func SetMemoryLimit(limit int64) int64

SetMemoryLimit calls the runtime/debug.SetMemoryLimit function to set the soft-memory limit.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL