PR impromvements
@@ -9,16 +9,11 @@ func (st StackTrace) frames() []stacktraceFrame {
frames := runtime.CallersFrames(st)
for i := range st {
frame, more := frames.Next()
- fun := runtime.FuncForPC(frame.PC)
- if nil == fun {
- fs[i] = stacktraceFrame{}
- } else {
fs[i] = stacktraceFrame{
- Name: fun.Name(),
+ Name: frame.Function,
File: frame.File,
Line: int64(frame.Line),
}
- }
if !more {
break
}
