import { Profile } from 'pprof-format'; /** * Supported profile types */ export declare enum ProfileType { CPU = "cpu", HEAP = "heap", UNKNOWN = "unknown" } /** * Supported time units */ export declare enum TimeUnit { NANOSECONDS = "nanoseconds", MICROSECONDS = "microseconds", MILLISECONDS = "milliseconds", SECONDS = "seconds" } /** * Supported space units */ export declare enum SpaceUnit { BYTES = "bytes", KILOBYTES = "kilobytes", MEGABYTES = "megabytes", GIGABYTES = "gigabytes" } /** * Profile metadata containing type and unit information */ export interface ProfileMetadata { profileType: ProfileType; unit: TimeUnit | SpaceUnit; sampleTypeIndex: number; scaleFactor: number; } /** * Detect the profile type and unit from a Profile's sampleType */ export declare function detectProfileMetadata(profile: Profile): ProfileMetadata; /** * Check if a profile is a CPU profile */ export declare function isCPUProfile(metadata: ProfileMetadata): boolean; /** * Check if a profile is a heap profile */ export declare function isHeapProfile(metadata: ProfileMetadata): boolean; //# sourceMappingURL=ProfileMetadata.d.ts.map