profile

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2019 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package profile provides a profiler which can store a key and related TimeRecord.

The profiler is used in various tests to check the performance of code.

Index

Constants

This section is empty.

Variables

View Source
var Prof = NewProfiler()

Functions

This section is empty.

Types

type Profiler

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

func NewProfiler

func NewProfiler() *Profiler

func (*Profiler) GetProfileInfoString

func (p *Profiler) GetProfileInfoString() string

func (*Profiler) PrintProfileInfo

func (p *Profiler) PrintProfileInfo()

func (*Profiler) Profile

func (p *Profiler) Profile(key string, d time.Duration)

type TimeRecord

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

Jump to

Keyboard shortcuts

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