tools

package
v3.6.7 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

TODO(grobinson): Find a way to move this file into the dataobj package. Today it's not possible because there is a circular dependency between the dataobj package and the logs package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Inspect

func Inspect(r io.ReaderAt, size int64)

Types

type PercentileStats added in v3.6.0

type PercentileStats struct {
	Median float64
	P95    float64
	P99    float64
}

type Stats added in v3.6.0

type Stats struct {
	Size                   uint64
	Sections               int
	SectionSizes           []uint64
	Tenants                []string
	TenantSections         map[string]int
	SectionsPerTenantStats PercentileStats
	SectionSizeStats       PercentileStats
}

func ReadStats added in v3.6.0

func ReadStats(_ context.Context, obj *dataobj.Object) (*Stats, error)

ReadStats returns statistics about the data object. ReadStats returns an error if the data object couldn't be inspected or if the provided ctx is canceled.

Jump to

Keyboard shortcuts

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