memory

package
v0.0.0-...-212a885 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

* @Author: Wangjun * @Date: 2022-11-11 10:58:40 * @LastEditTime: 2022-11-14 16:18:44 * @LastEditors: Wangjun * @Description: * @FilePath: \golib\memory\memory.go * hnxr

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMemoryUsed

func GetMemoryUsed(pid int) int64

Types

type Memory

type Memory struct {
	// contains filtered or unexported fields
}

func (*Memory) GetMemoryStats

func (m *Memory) GetMemoryStats(now int64, pid int) *runtime.MemStats

*

  • @description: 获取使用内存的大小,如果是linux则查询自己的rss内存数据
  • @param {int64} now
  • @return {*}

Directories

Path Synopsis
* @Author: Wangjun * @Date: 2022-11-14 16:04:20 * @LastEditTime: 2022-11-14 16:07:33 * @LastEditors: Wangjun * @Description: * @FilePath: \golib\memory\test\main.go * hnxr
* @Author: Wangjun * @Date: 2022-11-14 16:04:20 * @LastEditTime: 2022-11-14 16:07:33 * @LastEditors: Wangjun * @Description: * @FilePath: \golib\memory\test\main.go * hnxr

Jump to

Keyboard shortcuts

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