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

24 lines (23 loc) 995 B
/// <reference types="node" /> import { NodeModule } from './NodeModule'; import { Report } from './Report'; import { GlobalIndex } from './index/GlobalIndex'; import { ModuleIndex } from './index/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; }; }