protopprof

package
v0.0.0-...-d202c64 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2019 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package protopprof converts the runtime's raw profile logs to Profile structs containing a representation of the pprof protocol buffer profile format.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeMemProfile

func EncodeMemProfile(mr []runtime.MemProfileRecord, rate int64, t time.Time) *profile.Profile

EncodeMemProfile converts MemProfileRecords to a Profile.

func TranslateCPUProfile

func TranslateCPUProfile(b []byte, startTime time.Time) (*profile.Profile, error)

TranslateCPUProfile parses binary CPU profiling stack trace data generated by runtime.CPUProfile() into a profile struct.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL