mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-06 20:41:17 +01:00
feat: add heap snapshot
This commit is contained in:
@@ -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:
|
||||
|
||||
18
public/openapi/read/admin/advanced/heap/dump.yaml
Normal file
18
public/openapi/read/admin/advanced/heap/dump.yaml
Normal 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.
|
||||
Reference in New Issue
Block a user