UNPKG

@oaklean/profiler-core

Version:

Part of the @oaklean suite. It provides all basic functions to work with the `.oak` file format. It allows parsing the `.oak` file format as well as tools for analyzing the measurement values. It also provides all necessary capabilities required for prec

23 lines (22 loc) 968 B
import { NodeModule } from './NodeModule'; import { Report } from './Report'; import { GlobalIndex } from './indices/GlobalIndex'; import { ModuleIndex } from './indices/ModuleIndex'; import { IModuleReport, ReportType, ReportKind } from '../types'; export declare class ModuleReport extends Report { nodeModule: NodeModule; constructor(moduleIndex: ModuleIndex, nodeModule: NodeModule, kind: ReportKind); static merge(moduleIndex: ModuleIndex, ...args: ModuleReport[]): ModuleReport; toJSON(): IModuleReport; static fromJSON(json: string | IModuleReport, moduleIndex: ModuleIndex): ModuleReport; toBuffer(): Buffer; static consumeFromBuffer(buffer: Buffer, moduleIndex: ModuleIndex): { instance: Report; type: ReportType; remainingBuffer: Buffer; }; static consumeFromBuffer_ModuleReport(buffer: Buffer, globalIndex: GlobalIndex): { instance: ModuleReport; remainingBuffer: Buffer; }; }