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

22 lines (21 loc) 1.04 kB
import { State } from './types/state'; import { TransitionResult } from './types/transition'; import { AccountingInfo, Compensation } from './types/accounting'; import { StackFrame } from './types/stack'; import { CPUNode } from '../CPUProfile'; export declare class CompensationHelper { static createCompForParent(compensation: Compensation): Compensation; static addToCompensation(target: Compensation, add: Compensation): void; static createCompensationIfNecessary(node: CPUNode, currentState: State, transitionResult: TransitionResult, debug?: { depth: number; node: CPUNode; }): Compensation | undefined; static applyCompensation(node: CPUNode, currentState: State, parentState: State, compensation: Compensation, accountingInfo: AccountingInfo, debug?: { depth: number; }): void; static propagateCompensation(parentStackFrame: StackFrame | undefined, compensation: Compensation, debugInfo?: { depth: number; node: CPUNode; currentState: State; }): void; }