Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// run the liveTrace
const { traceEvents } = await liveTrace(
url,
tbResultsFolder,
cookiesJSON,
conditions
);
const analyzeOptions: IAnalyze = {
traceEvents,
traceHARJSON,
methods,
};
// analyze the liveTrace
await analyze(analyzeOptions);
if (insights) {
// js-eval-time
let trace: any;
let totalJSDuration: number = 0;
let totalCSSDuration: number = 0;
const methods = new Set();
try {
trace = setTraceEvents(traceEvents);
} catch (error) {
this.error(`${error}`);
}
trace