このページは英語からの機械翻訳を使用しており、誤りや不明瞭な表現が含まれている可能性があります。最も正確な情報については、オリジナルの英語版をご覧ください。頻繁な更新のため、一部のコンテンツはオリジナルの英語になっている可能性があります。Crowdinでの取り組みに参加して、このページの翻訳改善にご協力ください。 (Crowdin translation page, Contributing guide)
[Profiling] debug_writeMemProfile
Writes an allocation profile to the given file. Note that the profiling rate cannot be set through the API, it must be set on the command line using the --memprofilerate flag.
JSONRPC: debug_writeMemProfile
Request
- application/json
Body
params File (string)[]
The filename for the profiling output.
Responses
- 200
Writes an allocation profile to the given file.
- application/json
- Schema
- Example (from schema)
Schema
error
object
result stringnullable
{
"jsonrpc": "2.0",
"id": 0,
"error": {
"code": -32700,
"message": "Parse error",
"data": "string"
},
"result": "string"
}
- curl
- python
- nodejs
- java
- Curl
curl -X 'POST' \
'https://public-en-kairos.node.kaia.io' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"method": "debug_writeMemProfile",
"id": 1,
"jsonrpc": "2.0",
"params": ["mem.profile"]
}'
- CURL
curl -L 'https://public-en-kairos.node.kaia.io/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"method": "debug_writeMemProfile",
"id": 1,
"jsonrpc": "2.0",
"params": [
"mem.profile"
]
}'
ResponseClear