Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MeasuringTape ¶
type MeasuringTape struct {
// contains filtered or unexported fields
}
MeasuringTape measures how much memory a particular value used.
func (*MeasuringTape) Measure ¶
func (t *MeasuringTape) Measure(v any)
Measure records the memory transitively reachable through v.
func (*MeasuringTape) Usage ¶
func (t *MeasuringTape) Usage() uint64
Usage returns the total number of bytes used.
Click to show internal directories.
Click to hide internal directories.