@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
29 lines (28 loc) • 785 B
TypeScript
import { Protocol as Cdp } from 'devtools-protocol';
import { ISourceLocation } from '../location-mapping';
/**
* Category of call frames. Grouped into system, modules, and user code.
*/
export declare const enum Category {
System = 0,
User = 1,
Module = 2,
Deemphasized = 3
}
export interface INode {
id: number;
category: Category;
callFrame: Cdp.Runtime.CallFrame;
src?: ISourceLocation;
}
export interface ICommonNode extends INode {
children: {
[id: number]: ICommonNode;
};
childrenSize: number;
parent?: ICommonNode;
}
/**
* Categorizes the given call frame.
*/
export declare const categorize: (callFrame: Cdp.Runtime.CallFrame, src: ISourceLocation | undefined) => Category.System | Category.User | Category.Module;