feat: add heap snapshot

This commit is contained in:
Barış Soner Uşaklı
2025-07-11 08:50:53 -04:00
parent e4f56e8392
commit f88329dbbe
6 changed files with 47 additions and 2 deletions

View File

@@ -174,6 +174,8 @@ paths:
$ref: 'read/admin/advanced/cache.yaml'
/api/admin/advanced/cache/dump:
$ref: 'read/admin/advanced/cache/dump.yaml'
/api/admin/advanced/heap/dump:
$ref: 'read/admin/advanced/heap/dump.yaml'
/api/admin/development/logger:
$ref: 'read/admin/development/logger.yaml'
/api/admin/development/info:

View File

@@ -0,0 +1,18 @@
get:
tags:
- admin
summary: Get nodejs heap snapshot
description: Downloads a Node.js heap snapshot for memory analysis.
parameters: []
responses:
"200":
description: Heap snapshot file (in .heapsnapshot format)
content:
application/octet-stream:
schema:
type: string
format: binary
examples:
heapSnapshot:
summary: Example Heap Snapshot Download
description: A binary heap snapshot file.