An open API service indexing awesome lists of open source software.

https://github.com/lvce-editor/measure-memory


https://github.com/lvce-editor/measure-memory

lvce-editor memory

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# Measure Memory

Measure WebWorker memory usage using Playwright.

## Install

```sh
npm install @lvce-editor/measure-memory
```

## Usage

```js
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()
```