From 9fa8ee22513e17807f1cf23deebe56e73fb5d96a Mon Sep 17 00:00:00 2001 From: Moritz Utcke Date: Mon, 2 Jun 2025 21:35:00 -0300 Subject: [PATCH] Heap Snapshot Generator --- src/pages/heap-snapshot.astro | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/pages/heap-snapshot.astro diff --git a/src/pages/heap-snapshot.astro b/src/pages/heap-snapshot.astro new file mode 100644 index 00000000..f539168b --- /dev/null +++ b/src/pages/heap-snapshot.astro @@ -0,0 +1,6 @@ +--- +import { writeHeapSnapshot } from "v8"; + +// Create a named heap snapshot +writeHeapSnapshot(".heapsnapshot"); +--- \ No newline at end of file