@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
16 lines (15 loc) • 711 B
TypeScript
import { BaseMetricsData } from './BaseMetricsData';
import { MilliJoule_number, NanoSeconds_BigInt, IPerfMetricsDataOutputFormat, IPerfMetricsData } from '../../types';
export declare class PerfMetricsData extends BaseMetricsData {
private _data;
constructor(data: IPerfMetricsDataOutputFormat);
toJSON(): IPerfMetricsData;
static fromJSON(json: string | IPerfMetricsData, ...args: any[]): PerfMetricsData;
get duration(): NanoSeconds_BigInt;
get startTime(): NanoSeconds_BigInt;
processIsPresent(pid: number): boolean;
energyPortionOfProcess(pid: number): number;
get endTime(): NanoSeconds_BigInt;
cpuEnergy(): MilliJoule_number;
ramEnergy(): MilliJoule_number;
}