crunch

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2019 License: Apache-2.0 Imports: 4 Imported by: 7

Documentation

Overview

Package crunch provides functions to compress and decompress stacktraces.

crunch is intented to be used to compress a stacktrace down to something that can fit inside a Google Analytics exception payload (150 bytes). crunch uses a number of different compression algorithms to compact the list of program counters down to the smallest number of bytes possible. Given the exhaustive search, this is optimized for output size over compression performance.

Note that the output of a crunch only makes sense to the particular build used to create it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Crunch

func Crunch(c stacktrace.Callstack) []byte

Crunch compresses the callstack down to a minimal compressed form.

func Uncrunch

func Uncrunch(data []byte) stacktrace.Callstack

Uncrunch decompresses the callstack from the minimal compressed form.

Types

This section is empty.

Jump to

Keyboard shortcuts

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