Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for translateCPUProfile (0.15 sec)

  1. src/runtime/pprof/proto_test.go

    	"runtime"
    	"strings"
    	"testing"
    	"unsafe"
    )
    
    // translateCPUProfile parses binary CPU profiling stack trace data
    // generated by runtime.CPUProfile() into a profile struct.
    // This is only used for testing. Real conversions stream the
    // data into the profileBuilder as it becomes available.
    //
    // count is the number of records in data.
    func translateCPUProfile(data []uint64, count int) (*profile.Profile, error) {
    	var buf bytes.Buffer
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 23:21:53 UTC 2024
    - 17K bytes
    - Viewed (0)
Back to top