@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
15 lines (14 loc) • 719 B
TypeScript
import { MilliJoule_number, NanoSeconds_BigInt, IPowerMetricsData, IPerfMetricsData, IWindowsSensorInterfaceMetricsData } from '../../types';
export declare class BaseMetricsData {
processIsPresent(pid: number): boolean;
energyPortionOfProcess(pid: number): number;
totalEnergyImpact(): number;
get duration(): NanoSeconds_BigInt;
get startTime(): NanoSeconds_BigInt;
get endTime(): NanoSeconds_BigInt;
cpuEnergy(): MilliJoule_number;
ramEnergy(): MilliJoule_number;
toJSON(): IPowerMetricsData | IPerfMetricsData | IWindowsSensorInterfaceMetricsData;
static fromJSON(json: string | object, // eslint-disable-line @typescript-eslint/no-unused-vars
...args: any[]): object;
}