[Profiling] debug_writeMutexProfile
Writes a goroutine blocking profile to the given file.
JSONRPC: debug_writeMutexProfile
Request
- application/json
Body
method stringrequired
Default value: debug_writeMutexProfile
Method name
id int64required
Default value: 1
Request ID, Random or Auto incrementation
jsonrpc stringrequired
Default value: 2.0
JSON-RPC Version (2.0)
params File[]
The filename for the profiling output.
Responses
- 200
Writes a goroutine blocking profile to the given file.
- application/json
- Schema
- Example (from schema)
Schema
jsonrpc stringrequired
Default value: 2.0
id int64required
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 -L -X POST 'http://localhost:8551/debug/profiling/writeMutexProfile' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"method": "debug_writeMutexProfile",
"id": 1,
"jsonrpc": "2.0",
"params": [
"mutex.profile"
]
}'
ResponseClear