@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
63 lines (62 loc) • 2.37 kB
TypeScript
import { CPUModel } from './CPUModel';
import { NodeModule } from '../model/NodeModule';
import { IComputedNode, ILocation } from '../../lib/vscode-js-profile-core/src/cpu/model';
import { UnifiedPath } from '../system/UnifiedPath';
import { MilliJoule_number, SourceNodeIdentifier_string, IPureCPUTime, IPureCPUEnergyConsumption, IPureRAMEnergyConsumption } from '../types';
export declare const RegExpTestRegex: RegExp;
export declare enum CPUNodeType {
extern = "extern",
intern = "intern",
langInternal = "lang_internal"
}
export declare class CPUNode {
private _index;
private cpuModel;
private rootDir;
private cpuNode;
private _aggregatedEnergyConsumption;
private _sourceLocation?;
private _isEmpty?;
private _isLangInternal?;
private _isExtern?;
private _rawUrl?;
private _url?;
private _relativeUrl?;
private _nodeModulePath?;
private _nodeModule?;
private _relativeSourceFilePath?;
private _sourceNodeIdentifier?;
private _isWithinTypescriptFile?;
private _javascriptUrl?;
private _relativeJavascriptUrl?;
constructor(index: number, cpuModel: CPUModel, rootDir: UnifiedPath, node: IComputedNode);
get profilerHits(): number;
get selfCPUEnergyConsumption(): MilliJoule_number;
get selfRAMEnergyConsumption(): MilliJoule_number;
get aggregatedEnergyConsumption(): [MilliJoule_number, MilliJoule_number];
get cpuEnergyConsumption(): IPureCPUEnergyConsumption;
get ramEnergyConsumption(): IPureRAMEnergyConsumption;
get index(): number;
get cpuTime(): IPureCPUTime;
get ISourceLocation(): ILocation;
get sourceLocation(): {
lineNumber: number;
columnNumber: number;
};
get isLangInternal(): boolean;
get isEmpty(): boolean;
get rawUrl(): string;
get url(): UnifiedPath;
get relativeUrl(): UnifiedPath;
get nodeModulePath(): UnifiedPath | null;
get nodeModule(): NodeModule | null | undefined;
get relativeSourceFilePath(): UnifiedPath;
get isExtern(): boolean;
get type(): CPUNodeType;
private functionNameToSourceNodeIdentifier;
get sourceNodeIdentifier(): SourceNodeIdentifier_string;
get isWithinTypescriptFile(): boolean;
get relativeJavascriptUrl(): UnifiedPath;
get javascriptUrl(): UnifiedPath;
children(): Generator<CPUNode, void, unknown>;
}