debug

package
v0.0.0-...-140c642 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BigRoTxKb

func BigRoTxKb() uint

DEBUG_BIG_RO_TX_KB - print logs with info about large read-only transactions DEBUG_BIG_RW_TX_KB - print logs with info about large read-write transactions DEBUG_SLOW_COMMIT_MS - print logs with commit timing details if commit is slower than this threshold

func BigRwTxKb

func BigRwTxKb() uint

func ByteToMb

func ByteToMb(b uint64) uint64

func Callers

func Callers(show int) []string

Callers returns given number of callers with packages

func IsGetNodeData

func IsGetNodeData() bool

IsGetNodeData indicates whether the GetNodeData functionality should be enabled. By default that's driven by the presence or absence of DISABLE_GET_NODE_DATA environment variable.

func OverrideGetNodeData

func OverrideGetNodeData(val bool)

OverrideGetNodeData allows to explicitly enable or disable the GetNodeData functionality.

func PrintMemStats

func PrintMemStats(short bool)

func RestoreGetNodeData

func RestoreGetNodeData()

RestoreGetNodeData enables or disables the GetNodeData functionality according to the presence or absence of GET_NODE_DATA environment variable.

func SlowCommit

func SlowCommit() time.Duration

func TestDB

func TestDB() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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