import { BaseMetadata } from './base-metadata'; /** * A stackTrace * It corresponds to a function called during a program execution. * Children of a function are functions called by the parent function during its execution. */ export interface StackTrace { id: number; name: string; level: number; start: number; end: number; total: number; self: number; children: StackTrace[]; } /** * Timeline attribute contains data to draw the chart showing the evolution of the profiled resource over time (CPU, memory, etc.). * It is like a metric and it helps to identify bottlenecks. */ export interface Timeline { startTime: number; samples: number[]; durationDelta: number; } /** * An entire profile * It is the stacktrace of the root function. */ export interface Profile { stackTrace: StackTrace; } /** * A generalized data-model that will be used by Panel components * to display profiles. */ export interface ProfileData { profile: Profile; timeline?: Timeline; numTicks?: number; maxSelf?: number; metadata?: ProfileMetaData; } export interface ProfileMetaData extends BaseMetadata { spyName: string; sampleRate: number; units: string; name: string; } //# sourceMappingURL=profile-data.d.ts.map