Documentation
      ¶
    
    
  
    
  
    Overview ¶
Package pproflite implements zero-allocation pprof encoding and decoding.
Index ¶
- type Comment
 - type Decoder
 - type DefaultSampleType
 - type DropFrames
 - type DurationNanos
 - type Encoder
 - type Field
 - type FieldDecoder
 - type Function
 - type KeepFrames
 - type Label
 - type Line
 - type Location
 - type LocationFast
 - type Mapping
 - type Period
 - type PeriodType
 - type Sample
 - type SampleType
 - type StringTable
 - type TimeNanos
 - type ValueType
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Decoder ¶
type Decoder struct {
	// contains filtered or unexported fields
}
    Decoder ...
type Field ¶
type Field interface {
	// contains filtered or unexported methods
}
    Field holds the value of a top-level profile.proto Profile.* field.
type FieldDecoder ¶
type FieldDecoder int
FieldDecoder ...
const ( SampleTypeDecoder FieldDecoder = iota SampleDecoder MappingDecoder LocationDecoder LocationFastDecoder FunctionDecoder StringTableDecoder DropFramesDecoder KeepFramesDecoder TimeNanosDecoder DurationNanosDecoder PeriodTypeDecoder PeriodDecoder CommentDecoder DefaultSampleTypeDecoder )
Important: For fields with multiple decoders, list the default decoder first here (e.g. Location before LocationID).
type LocationFast ¶
LocationFast is field 4. Unlike Location it only decodes the id and function ids of the location and stores its raw protobuf message. When encoding a LocationFast, the Data value gets written and changes to its other fields are ignored.
type Mapping ¶
type Mapping struct {
	ID              uint64
	MemoryStart     uint64
	MemoryLimit     uint64
	FileOffset      uint64
	Filename        int64
	BuildID         int64
	HasFunctions    bool
	HasFilenames    bool
	HasLineNumbers  bool
	HasInlineFrames bool
}
    Mapping is field 3.
 Click to show internal directories. 
   Click to hide internal directories.