- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for newProfileBuilder (0.29 sec)
-
src/runtime/pprof/protomem.go
"strings" ) // writeHeapProto writes the current heap profile in protobuf format to w. func writeHeapProto(w io.Writer, p []profilerecord.MemProfileRecord, rate int64, defaultSampleType string) error { b := newProfileBuilder(w) b.pbValueType(tagProfile_PeriodType, "space", "bytes") b.pb.int64Opt(tagProfile_Period, rate) b.pbValueType(tagProfile_SampleType, "alloc_objects", "count") b.pbValueType(tagProfile_SampleType, "alloc_space", "bytes")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 14:38:45 UTC 2024 - 2.9K bytes - Viewed (0) -
src/runtime/pprof/pprof.go
// and the number of cycles for block, contention profiles. func printCountCycleProfile(w io.Writer, countName, cycleName string, records []profilerecord.BlockProfileRecord) error { // Output profile in protobuf form. b := newProfileBuilder(w) b.pbValueType(tagProfile_PeriodType, countName, "count") b.pb.int64Opt(tagProfile_Period, 1) b.pbValueType(tagProfile_SampleType, countName, "count") b.pbValueType(tagProfile_SampleType, cycleName, "nanoseconds")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:52:17 UTC 2024 - 30.6K bytes - Viewed (0) -
src/runtime/pprof/proto.go
firstPCFrames []runtime.Frame firstPCSymbolizeResult symbolizeFlag } // newProfileBuilder returns a new profileBuilder. // CPU profiling data obtained from the runtime can be added // by calling b.addCPUData, and then the eventual profile // can be obtained by calling b.finish. func newProfileBuilder(w io.Writer) *profileBuilder { zw, _ := gzip.NewWriterLevel(w, gzip.BestSpeed) b := &profileBuilder{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 13 20:40:52 UTC 2023 - 25.7K bytes - Viewed (0) -
src/runtime/pprof/proto_test.go
// 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 b := newProfileBuilder(&buf) tags := make([]unsafe.Pointer, count) if err := b.addCPUData(data, tags); err != nil { return nil, err } b.build() return profile.Parse(&buf) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 31 23:21:53 UTC 2024 - 17K bytes - Viewed (0)