@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
18 lines (17 loc) • 1.75 kB
TypeScript
import { State } from './types/state';
import { Transition } from './types/transition';
import { AccountingInfo, Compensation } from './types/accounting';
import { CPUNode } from '../CPUProfile/CPUNode';
import { SourceNodeMetaData } from '../../model';
import { SourceNodeMetaDataType_Reference } from '../../types';
export declare class StateMachineLogger {
static formatReference: (entries: Record<"CPU Time" | "CPU Energy" | "RAM Energy", string>) => string;
static formatState: (entries: Record<"CPU Time" | "CPU Energy" | "RAM Energy" | "Depth" | "CPU Node" | "ReportID" | "SourceNodeID" | "Scope" | "Type" | "Headless" | "Profiler Hits", string>) => string;
static logState(depth: number, cpuNode: CPUNode, currentState: State): void;
static logSourceNodeReference(referenceSourceNode: SourceNodeMetaData<SourceNodeMetaDataType_Reference>): void;
static logLeaveTransition(currentState: State, nextState: State): void;
static formatTransition: (entries: Record<"CPU Node" | "Transition" | "Create Link" | "AccountingType" | "FirstTimeVisited" | "Accounted Hits" | "Accounted CPU Time" | "Accounted CPU Energy" | "Accounted RAM Energy", string>) => string;
static logTransition(cpuNode: CPUNode, transition: Transition, accountingInfo: AccountingInfo, currentState: State, nextState: State): void;
static formatCompensation: (entries: Record<"Depth" | "CPU Node" | "ReportID" | "SourceNodeID" | "Scope" | "Type" | "Headless" | "Compensation ID" | "Compensated CPU Time" | "Compensated CPU Energy" | "Compensated RAM Energy", string>) => string;
static logCompensation(depth: number, cpuNode: CPUNode, currentState: State, compensation: Compensation, title: 'CREATE COMPENSATION' | 'APPLY COMPENSATION'): void;
}