https://github.com/lvce-editor/measure-memory
https://github.com/lvce-editor/measure-memory
lvce-editor memory
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/lvce-editor/measure-memory
- Owner: lvce-editor
- License: mit
- Created: 2024-12-14T14:13:32.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-06-27T13:55:38.000Z (17 days ago)
- Last Synced: 2025-06-27T14:43:54.628Z (17 days ago)
- Topics: lvce-editor, memory
- Language: TypeScript
- Homepage:
- Size: 428 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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()
```