memoryStore

A readable store to easily access the current memory usage of your browser.

Demo

Your browser does not support performance memory API

Usage

<script lang="ts">
import { memoryStore } from 'svelte-legos';

const memoryStore = memoryStore();

// $memoryStore has these properties

// isSupported: boolean
// memory: { jsHeapSizeLimit: number, totalJSHeapSize: number, usedJSHeapSize: number } in bytes

</script>