Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstrumentHTTPClient ¶
InstrumentHTTPClient wraps an HTTP client so active builds can estimate network wait time.
func RecordPlugin ¶
RecordPlugin stores a plugin hook timing when a profile is active.
func RecordStage ¶
RecordStage stores a stage timing when a profile is active.
func SetActiveStage ¶
func SetActiveStage(stage string)
SetActiveStage marks the currently running lifecycle stage for resource attribution.
Types ¶
type Profile ¶
type Profile struct {
// contains filtered or unexported fields
}
Profile collects coarse-grained benchmark data for a build.
type ResourceBreakdown ¶
type ResourceBreakdown struct {
CPU time.Duration
NetworkWait time.Duration
DiskWait time.Duration
Idle time.Duration
}
ResourceBreakdown is an estimated wall-time split for a build.
type StageTiming ¶
type StageTiming struct {
Stage string
Duration time.Duration
Resources ResourceBreakdown
}
StageTiming records how long a lifecycle stage took.
type Summary ¶
type Summary struct {
Total time.Duration
Resources ResourceBreakdown
Hotspots []Hotspot
Stages []StageTiming
}
Summary contains benchmark details for a single build.
Click to show internal directories.
Click to hide internal directories.