mirror of
				https://github.com/go-delve/delve.git
				synced 2025-10-31 10:47:27 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			393 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			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)
 | |
| 	}
 | |
| }
 | 
