Skip to content

add TraceFrom(pcs) for "on-demand" StackTrace instantiation#24

Closed
lukseven wants to merge 4 commits intogo-stack:masterfrom
eluv-io:master
Closed

add TraceFrom(pcs) for "on-demand" StackTrace instantiation#24
lukseven wants to merge 4 commits intogo-stack:masterfrom
eluv-io:master

Conversation

@lukseven
Copy link

Allows to record just the pcs from runtime.Callers when an error
occurs and convert them to a StackTrace only if the trace is actually
needed, e.g. when printing to a log.

Improves performance about 4x.

Allows to record just the pcs from runtime.Callers when an error
occurs and convert them to a StackTrace only if the trace is actually
needed, e.g. when printing to a log.

Improves performance about 4x.
@lukseven lukseven closed this Jan 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant