UNPKG

@oaklean/profiler

Version:

A library to measure the energy consumption of your javascript/typescript code

14 lines (13 loc) 594 B
import { MetricsDataCollection, NanoSeconds_BigInt, SensorInterfaceType } from '@oaklean/profiler-core'; export declare class BaseSensorInterface { protected _couldBeExecuted: boolean | undefined; type(): SensorInterfaceType; couldBeExecuted(): Promise<boolean>; canBeExecuted(): Promise<boolean>; isRunning(): boolean; get startTime(): NanoSeconds_BigInt | undefined; readSensorValues(pid: number): Promise<MetricsDataCollection | undefined>; startProfiling(): Promise<void>; stopProfiling(): Promise<void>; static pidIsRunning(pid: number): boolean; }