profile

package
v0.0.0-...-bd0de05 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

README

cpu 处理器性能

  • 默认取样30s

    go tool pprof http://ip:port/debug/pprof/profile

  • 设置取样45s:

    go tool pprof http://ip:port/debug/pprof/profile\?seconds\=45




heap 内存性能

  • heap 内存性能:

    go tool pprof http://ip:port/debug/pprof/heap

  • 设置取样45s:

    go tool pprof http://ip:port/debug/pprof/heap\?second\=45




常用指令

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPServerOpt

type HTTPServerOpt func(*PprofServer)

type PprofServer

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

func NewPprofServer

func NewPprofServer(host string, port int32) *PprofServer

创建 HTTP 服务器实例

func (*PprofServer) Start

func (s *PprofServer) Start()

func (*PprofServer) Stop

func (s *PprofServer) Stop()

Jump to

Keyboard shortcuts

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