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
- Host: GitHub
- URL: https://github.com/lvce-editor/measure-memory
- Owner: lvce-editor
- License: mit
- Created: 2024-12-14T14:13:32.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-04-05T12:00:57.000Z (about 2 months ago)
- Last Synced: 2025-04-05T12:28:13.472Z (about 2 months ago)
- Topics: lvce-editor, memory
- Language: TypeScript
- Homepage:
- Size: 570 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()
```