tally

package
v0.16.521 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: AGPL-3.0 Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package tally counts what reading transcripts costs the process: the files opened, the bytes read off them, the stats and the lines decoded as JSON. Every reader of a transcript, the shared index and the readers it replaces, counts here, so one measurement compares them.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode()

Decode counts a line decoded.

func Open

func Open()

Open counts a file opened.

func Read

func Read(n int)

Read counts n bytes read.

func Stat

func Stat()

Stat counts a stat.

Types

type Counts

type Counts struct {
	Opens   int64 // files opened
	Bytes   int64 // bytes read
	Stats   int64 // stat calls
	Decodes int64 // lines decoded as JSON
}

Counts is a reading of the counters.

func Now

func Now() Counts

Now is the counters as they stand.

func (Counts) Sub

func (c Counts) Sub(before Counts) Counts

Sub is what was counted since an earlier reading.

Jump to

Keyboard shortcuts

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