@lvce-editor/measure-memory
TypeScript icon, indicating that this package has built-in type declarations

1.8.1 • Public • Published

Measure Memory

Measure WebWorker memory usage using Playwright.

Install

npm install @lvce-editor/measure-memory

Usage

import { measureMemory } from '@lvce-editor/measure-memory'
import { playwrightPath, threshold, workerPath } from './config.ts'

const main = async () => {
  await measureMemory({
    playwrightPath: 'path-to-playwright.js',
    workerPath: 'path-to-webworker.js',
    threshold: 300_000,
  })
}

main()

Readme

Keywords

none

Package Sidebar

Install

npm i @lvce-editor/measure-memory

Weekly Downloads

491

Version

1.8.1

License

none

Unpacked Size

8.24 kB

Total Files

6

Last publish

Collaborators

  • levivilet