memory_exception

package
v0.0.0-...-232b4bc Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const MB = uint64(1024 * 1024)

Variables

This section is empty.

Functions

func Init

func Init(context context.Context, dirName string, memoryThreshold, samplingIntervalTime uint64, memoryExceptionDetection bool) interface{}

Init 服务器启动

func MemoryException

func MemoryException(context context.Context, dirName string, mt, sit uint64, done chan struct{})

MemoryException 内存分析

func OutputRule

func OutputRule() bool

OutputRule 输出规则,超过内存阀值(memoryThreshold),同时满足时间间隔(intervalTime) 即满足条件

Types

This section is empty.

Jump to

Keyboard shortcuts

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