Source file src/runtime/mprof_test.go

     1  // Copyright 2026 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package runtime_test
     6  
     7  import (
     8  	. "runtime"
     9  	"testing"
    10  )
    11  
    12  func BenchmarkBlocksampled(b *testing.B) {
    13  	for b.Loop() {
    14  		Blocksampled(42, 1337)
    15  	}
    16  }
    17  

View as plain text