Versions in this module Expand all Collapse all v2 v2.16.1 Nov 27, 2026 v2.16.0 Nov 27, 2026 Changes in this version + const RecursionCollapsed + const RecursionLevels v2.15.0 Nov 25, 2026 v2.14.0 Nov 22, 2026 Changes in this version + func SortFunctionsOrder(funcs []FuncStats, metric string, asc bool) v2.13.0 Nov 22, 2026 v2.12.0 Nov 20, 2026 v2.11.2 Nov 18, 2026 v2.11.1 Nov 17, 2026 v2.11.0 Nov 17, 2026 v2.10.0 Nov 16, 2026 v2.9.0 Nov 9, 2026 Changes in this version + func GetEdgeMetricValue(e *EdgeRow, metric string) int64 + func GetEdgePercent(e *EdgeRow, metric string) float64 + func GetFuncMetric(f *FuncStats, metric string) int64 + func SortFunctions(funcs []FuncStats, metric string) + type Diffs struct + CPU int64 + Calls int64 + Memory int64 + PeakMem int64 + WallTime int64 + type Edge struct + Callee string + Caller *string + Cost Metrics + Diff Diffs + ID string + Parent *string + Percents Percentages + type EdgeRow struct + Callee string + Caller *string + Cost Metrics + Diff Diffs + ParentUUID *string + Percents Percentages + UUID string + func LoadAllEdges(db *sql.DB, profileUUID string) ([]EdgeRow, error) + type FuncStats struct + CPU int64 + Callee string + Ct int64 + ExclCPU int64 + ExclCt int64 + ExclMu int64 + ExclPmu int64 + ExclWt int64 + Mu int64 + PCPU float64 + PExclCPU float64 + PExclMu float64 + PExclPmu float64 + PExclWt float64 + PMu float64 + PPmu float64 + PWt float64 + Pmu int64 + Wt int64 + func AggregateFunctions(edges []EdgeRow, peaks Metrics) []FuncStats + func (f *FuncStats) ToMap() map[string]any + type IncomingProfile struct + AppName string + Date int64 + Hostname string + Profile map[string]Metrics + Tags map[string]any + type Metrics struct + CPU int64 + Calls int64 + Memory int64 + PeakMem int64 + WallTime int64 + func LoadPeaks(db *sql.DB, uuid string) (Metrics, string, error) + func Process(incoming *IncomingProfile) (peaks Metrics, edges map[string]Edge) + type Module struct + func New() *Module + func (m *Module) HTTPHandler() module.HTTPIngestionHandler + func (m *Module) Name() string + func (m *Module) OnEventStored(ev event.Event) + func (m *Module) OnInit(db *sql.DB) error + func (m *Module) PreviewMapper() event.PreviewMapper + func (m *Module) RegisterMigrations(migrator *storage.Migrator) error + func (m *Module) RegisterProtectedRoutes(mux *http.ServeMux, protect func(http.Handler) http.Handler) + func (m *Module) Type() string + type Percentages struct + CPU float64 + Calls float64 + Memory float64 + PeakMem float64 + WallTime float64