Skip to main content

Function: run()

run(options?): Promise\<RunResult>

Defined in: api/src/API.ts:188

This API runs browser interaction and find memory leaks triggered in browser This is equivalent to running memlab run in CLI. This is also equivalent to warm up, and call takeSnapshots and findLeaks.

Parameters

options?

RunOptions = {}

Returns

Promise\<RunResult>

memory leaks detected and a utility reading browser interaction results from disk

  • Examples:
const {run} = require('@memlab/api');

(async function () {
const scenario = {
url: () => 'https://www.facebook.com',
};
const {leaks} = await run({scenario});
})();