@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
21 lines (20 loc) • 892 B
TypeScript
import { BaseMetricsData } from './BaseMetricsData';
import { MilliJoule_number, NanoSeconds_BigInt, IPowerMetricsOutputFormat, IPowerMetricsData } from '../../types';
export declare class PowerMetricsData extends BaseMetricsData {
private _data;
private _totalEnergyImpact;
private _energyImpactPerTask;
timeDelta: NanoSeconds_BigInt;
constructor(data: IPowerMetricsOutputFormat);
toJSON(): IPowerMetricsData;
static fromJSON(json: string | IPowerMetricsData, ...args: any[]): PowerMetricsData;
get duration(): NanoSeconds_BigInt;
get startTime(): NanoSeconds_BigInt;
get endTime(): NanoSeconds_BigInt;
energyImpactPerTask(): Map<number, number>;
totalEnergyImpact(): number;
processIsPresent(pid: number): boolean;
energyPortionOfProcess(pid: number): number;
cpuEnergy(): MilliJoule_number;
ramEnergy(): MilliJoule_number;
}