@memlab/core
Advanced tools
Comparing version 1.1.4 to 1.1.5
@@ -10,2 +10,4 @@ /** | ||
*/ | ||
/** @internal */ | ||
export declare function registerPackage(): Promise<void>; | ||
export * from './lib/Types'; | ||
@@ -46,3 +48,5 @@ /** @internal */ | ||
export { default as EvaluationMetric } from './trace-cluster/EvalutationMetric'; | ||
/** @internal */ | ||
export * from './lib/PackageInfoLoader'; | ||
export * from './lib/NodeHeap'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -25,2 +25,11 @@ "use strict"; | ||
}; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
@@ -30,3 +39,12 @@ return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.EvaluationMetric = exports.NormalizedTrace = exports.leakClusterLogger = exports.ProcessManager = exports.modes = exports.constant = exports.analysis = exports.browserInfo = exports.serializer = exports.fileManager = exports.utils = exports.BaseOption = exports.info = exports.config = void 0; | ||
exports.EvaluationMetric = exports.NormalizedTrace = exports.leakClusterLogger = exports.ProcessManager = exports.modes = exports.constant = exports.analysis = exports.browserInfo = exports.serializer = exports.fileManager = exports.utils = exports.BaseOption = exports.info = exports.config = exports.registerPackage = void 0; | ||
const path_1 = __importDefault(require("path")); | ||
const PackageInfoLoader_1 = require("./lib/PackageInfoLoader"); | ||
/** @internal */ | ||
function registerPackage() { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return PackageInfoLoader_1.PackageInfoLoader.registerPackage(path_1.default.join(__dirname, '..')); | ||
}); | ||
} | ||
exports.registerPackage = registerPackage; | ||
__exportStar(require("./lib/Types"), exports); | ||
@@ -81,2 +99,4 @@ /** @internal */ | ||
Object.defineProperty(exports, "EvaluationMetric", { enumerable: true, get: function () { return __importDefault(EvalutationMetric_1).default; } }); | ||
/** @internal */ | ||
__exportStar(require("./lib/PackageInfoLoader"), exports); | ||
__exportStar(require("./lib/NodeHeap"), exports); |
@@ -11,3 +11,3 @@ /** | ||
import type { LaunchOptions, Permission } from 'puppeteer'; | ||
import type { AnyFunction, AnyValue, IClusterStrategy, IRunningMode, IScenario, Nullable, Optional, QuickExperiment, ILeakFilter } from './Types'; | ||
import type { AnyFunction, AnyValue, IClusterStrategy, IRunningMode, IScenario, Nullable, Optional, QuickExperiment, ILeakFilter, IPackageInfo } from './Types'; | ||
interface BrowserLaunchArgumentOptions { | ||
@@ -48,2 +48,11 @@ headless?: boolean; | ||
export declare class MemLabConfig { | ||
_reportLeaksInTimers: boolean; | ||
_deviceManualOverridden: boolean; | ||
_timerNodes: string[]; | ||
_timerEdges: string[]; | ||
_isFullRun: boolean; | ||
_scenario: Optional<IScenario>; | ||
_isHeadfulBrowser: boolean; | ||
_browser: string; | ||
_packageInfo: IPackageInfo[]; | ||
snapshotHasDetachedness: boolean; | ||
@@ -53,6 +62,2 @@ specifiedEngine: boolean; | ||
jsEngine: string; | ||
_reportLeaksInTimers: boolean; | ||
_deviceManualOverridden: boolean; | ||
_timerNodes: string[]; | ||
_timerEdges: string[]; | ||
targetApp: string; | ||
@@ -100,3 +105,2 @@ targetTab: string; | ||
emulateDevice: Nullable<Device>; | ||
_browser: string; | ||
addEnableGK: Set<string>; | ||
@@ -176,5 +180,2 @@ addDisableGK: Set<string>; | ||
clusterRetainedSizeThreshold: number; | ||
_isFullRun: boolean; | ||
_scenario: Optional<IScenario>; | ||
_isHeadfulBrowser: boolean; | ||
externalLeakFilter?: Optional<ILeakFilter>; | ||
@@ -181,0 +182,0 @@ monoRepoDir: string; |
@@ -100,2 +100,4 @@ "use strict"; | ||
this._browser = 'chrome'; | ||
// a list of package information | ||
this._packageInfo = []; | ||
// a set of additional GKs to be enabled | ||
@@ -102,0 +104,0 @@ this.addEnableGK = new Set(); |
@@ -123,2 +123,8 @@ /** | ||
/** @internal */ | ||
export interface IPackageInfo { | ||
name: string; | ||
version: string; | ||
packageLocation?: string; | ||
} | ||
/** @internal */ | ||
export interface IRunningMode { | ||
@@ -455,2 +461,6 @@ setConfig(config: Config): void; | ||
* | ||
* * **Parameters**: | ||
* * page: `Page` | the puppeteer [`Page`](https://pptr.dev/api/puppeteer.page) | ||
* object, which provides APIs to interact with the web browser | ||
* | ||
* * **Examples**: | ||
@@ -680,2 +690,6 @@ * ```typescript | ||
* @param page - puppeteer's [Page](https://pptr.dev/api/puppeteer.page/) object. | ||
* @returns a boolean value, if it returns `true`, memlab will consider | ||
* the navigation completes, if it returns `false`, memlab will keep calling | ||
* this callback until it returns `true`. This is an async callback, you can | ||
* also `await` and returns `true` until some async logic is resolved. | ||
*/ | ||
@@ -682,0 +696,0 @@ export declare type CheckPageLoadCallback = (page: Page) => Promise<boolean>; |
{ | ||
"name": "@memlab/core", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "memlab core libraries", |
496141
110
12821
18