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.