Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused code to ignore runtime stack frames #493

Merged
merged 1 commit into from
Aug 18, 2017

Conversation

prashantv
Copy link
Collaborator

runtime.CallerFrames is currently ignoring the last frame, which is
always runtime.main (for the main goroutine) and runtime.goexit (for
additional goroutines). Since the main goroutine will include the user's
main function, this is noise that doesn't add much value.

We had special logic to ignore these runtime frames specifically, but
it's not required since it's only ever the very last stack frame and we
already ignore the last frame.

runtime.CallerFrames is currently ignoring the last frame, which is
always runtime.main (for the main goroutine) and runtime.goexit (for
additional goroutines). Since the main goroutine will include the user's
main function, this is noise that doesn't add much value.

We had special logic to ignore these runtime frames specifically, but
it's not required since it's only ever the very last stack frame and we
already ignore the last frame.
@codecov
Copy link

codecov bot commented Aug 17, 2017

Codecov Report

Merging #493 into master will increase coverage by 0.25%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #493      +/-   ##
=========================================
+ Coverage   96.94%   97.2%   +0.25%     
=========================================
  Files          37      37              
  Lines        2225    2253      +28     
=========================================
+ Hits         2157    2190      +33     
+ Misses         59      56       -3     
+ Partials        9       7       -2
Impacted Files Coverage Δ
stacktrace.go 98.3% <100%> (+7.82%) ⬆️
zaptest/observer/observer.go 100% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 51996d5...55230ac. Read the comment docs.

@prashantv prashantv merged commit 416e66a into master Aug 18, 2017
@prashantv prashantv deleted the no_runtime_stack branch August 18, 2017 23:41
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants