delve/dwarf/frame/frame_parser_test.go
2014-08-07 11:04:07 -05:00

20 lines
393 B
Go

package frame_test
import (
"testing"
"github.com/davecheney/profile"
"github.com/derekparker/dbg/dwarf/_helper"
"github.com/derekparker/dbg/dwarf/frame"
)
func BenchmarkParse(b *testing.B) {
defer profile.Start(profile.CPUProfile).Stop()
data := dwarfhelper.GrabDebugFrameSection("../../_fixtures/testprog", nil)
b.ResetTimer()
for i := 0; i < b.N; i++ {
frame.Parse(data)
}
}