profiler

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MySQLProfiler added in v0.2.0

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

func NewMySQLProfiler added in v0.2.0

func NewMySQLProfiler(file *os.File, logopt log.Options, opts *options.Options) *MySQLProfiler

func (*MySQLProfiler) Profile added in v0.2.0

func (p *MySQLProfiler) Profile(qstats *stats.QueryStats) error

func (*MySQLProfiler) ReadBytesInt64 added in v0.2.0

func (p *MySQLProfiler) ReadBytesInt64() int64

type PGProfiler added in v0.2.0

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

func NewPGProfiler added in v0.2.0

func NewPGProfiler(file *os.File, opts *options.Options) (*PGProfiler, error)

func (*PGProfiler) Profile added in v0.2.0

func (p *PGProfiler) Profile(qstats *stats.QueryStats) error

func (*PGProfiler) ReadBytesInt64 added in v0.2.0

func (p *PGProfiler) ReadBytesInt64() int64

type ProfileHelper added in v0.2.0

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

func NewProfileHelper added in v0.2.0

func NewProfileHelper() *ProfileHelper

func (*ProfileHelper) Dump added in v0.2.0

func (ph *ProfileHelper) Dump(dumpFile string, sts *stats.QueryStats) error

func (*ProfileHelper) LoadAndPrint added in v0.2.0

func (ph *ProfileHelper) LoadAndPrint(dumpFile string, sts *stats.QueryStats, printer *stats.Printer) error

func (*ProfileHelper) Open added in v0.2.0

func (ph *ProfileHelper) Open(filename string) (*os.File, error)

func (*ProfileHelper) OpenPosFile added in v0.2.0

func (ph *ProfileHelper) OpenPosFile(filename string) (*os.File, error)

func (*ProfileHelper) ReadBytes added in v0.2.0

func (ph *ProfileHelper) ReadBytes() int64

func (*ProfileHelper) ReadPosFile added in v0.2.0

func (ph *ProfileHelper) ReadPosFile(f *os.File) (int64, error)

func (*ProfileHelper) ReadPositionFile added in v0.2.0

func (ph *ProfileHelper) ReadPositionFile(posFilePath string, slowlogFile *os.File) (*os.File, int64, error)

func (*ProfileHelper) Seek added in v0.2.0

func (ph *ProfileHelper) Seek(file *os.File, n int64) error

func (*ProfileHelper) SetInReader added in v0.2.0

func (ph *ProfileHelper) SetInReader(f *os.File)

func (*ProfileHelper) SetReadBytes added in v0.2.0

func (ph *ProfileHelper) SetReadBytes(n int64)

func (*ProfileHelper) WritePositionFile added in v0.2.0

func (ph *ProfileHelper) WritePositionFile(posFile *os.File, noSavePos bool, position int64) error

type Profiler

type Profiler interface {
	Profile(qstats *stats.QueryStats) error
}

Jump to

Keyboard shortcuts

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