Documentation ¶
Index ¶
- Constants
- func AddShutdownListener(fn func()) (waitForCalled func())
- func AddWrapUpListener(fn func()) (waitForCalled func())
- func Env(name string) string
- func EnvInt(name string) (int, bool)
- func Pid() int
- func ProcessName() string
- func SetTimeToForceQuit(duration time.Duration)
- type Profile
- type Stopper
Constants ¶
View Source
const DefaultMemProfileRate = 4096
DefaultMemProfileRate is the default memory profiling rate. See also http://golang.org/pkg/runtime/#pkg-variables
Variables ¶
This section is empty.
Functions ¶
func AddShutdownListener ¶
func AddShutdownListener(fn func()) (waitForCalled func())
func AddWrapUpListener ¶
func AddWrapUpListener(fn func()) (waitForCalled func())
func ProcessName ¶
func ProcessName() string
func SetTimeToForceQuit ¶
Types ¶
type Profile ¶
type Profile struct {
// contains filtered or unexported fields
}
Profile represents an active profiling session.
type Stopper ¶
type Stopper interface {
Stop()
}
func StartProfile ¶
func StartProfile() Stopper
Start starts a new profiling session. The caller should call the Stop method on the value returned to cleanly stop profiling.
Click to show internal directories.
Click to hide internal directories.