profile

package
v2.7.3 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package profile provides profile related functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Profile

type Profile interface {
	StartCPUProfile(fp string) error

	UpdateCPUProfile(fp string) error
	UpdateMemoryProfile(fp string)

	StopCPUProfile()
	StopMemoryProfile(fp string)

	CPUFileName() string
	MemoryFileName() string

	Close(wg *sync.WaitGroup)
	Lock()
	Unlock()
}

Profile is the Profile interface.

func New

func New(opt *option.Options) (Profile, error)

New creates a profile.

Jump to

Keyboard shortcuts

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