debug

package
v25.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2025 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Debug is the sub-command invoked when calling "dgraph debug"
	Debug x.SubCommand
)

Functions

This section is empty.

Types

type HistogramData

type HistogramData struct {
	Bounds         []float64
	Count          int64
	CountPerBucket []int64
	Min            int64
	Max            int64
	Sum            int64
}

HistogramData stores the information needed to represent the sizes of the keys and values as a histogram.

func NewHistogramData

func NewHistogramData(bounds []float64) *HistogramData

NewHistogramData returns a new instance of HistogramData with properly initialized fields.

func (*HistogramData) PrintHistogram

func (histogram *HistogramData) PrintHistogram()

PrintHistogram prints the histogram data in a human-readable format.

func (*HistogramData) Update

func (histogram *HistogramData) Update(value int64)

Update changes the Min and Max fields if value is less than or greater than the current values.

type RaftStore

type RaftStore interface {
	raft.Storage
	Checkpoint() (uint64, error)
	HardState() (raftpb.HardState, error)
}

Jump to

Keyboard shortcuts

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