Documentation
¶
Index ¶
- type Profile
- type Recorder
- func (r *Recorder) AddCounts(name string, counts map[string]int64)
- func (r *Recorder) AddDuration(name string, duration time.Duration)
- func (r *Recorder) AddPhase(name string, duration time.Duration, counts map[string]int64)
- func (r *Recorder) Merge(profile Profile)
- func (r *Recorder) Profile(record *transfer.Record) Profile
- func (r *Recorder) Step(name string, fn func() error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Profile ¶
type Profile struct {
SchemaVersion int `json:"schema_version"`
RequestedEngine model.EngineType `json:"requested_engine"`
EffectiveEngine model.EngineType `json:"effective_engine,omitempty"`
OptimizedTransfer bool `json:"optimized_transfer"`
CloneMode string `json:"clone_mode,omitempty"`
PerformanceClass string `json:"performance_class,omitempty"`
TotalDurationMS int64 `json:"total_duration_ms"`
PhaseDurationsMS map[string]int64 `json:"phase_durations_ms"`
PhaseCounts map[string]map[string]int64 `json:"phase_counts,omitempty"`
}
Profile is the stable public save --json timing surface. It intentionally records roles, engines, durations, and counts, but never filesystem paths.
func (*Profile) ApplyDescriptorFallback ¶
func (p *Profile) ApplyDescriptorFallback(desc *model.Descriptor)
func (*Profile) ApplyTransfer ¶
Click to show internal directories.
Click to hide internal directories.