Runtime Tracing
Last updated
Last updated
Turns on Go runtime tracing for the given duration and writes trace data to disk.
Client | Method Invocation |
---|---|
Parameters
Name | Type | Description |
---|---|---|
Return Value
None
Example
Console
HTTP RPC
Starts writing a Go runtime trace to the given file.
Parameters
Return Value
None
Example
Console
HTTP RPC
Stops writing the Go runtime trace.
Parameters
None
Return Value
None
Example
Console
HTTP RPC
Client | Method Invocation |
---|---|
Name | Type | Description |
---|---|---|
Client | Method Invocation |
---|---|
Console
debug.goTrace(file, seconds)
RPC
{"method": "debug_goTrace", "params": [string, number]}
file
string
The filename for the trace output.
seconds
int
The tracing duration in seconds.
Console
debug.startGoTrace(file)
RPC
{"method": "debug_startGoTrace", "params": [string]}
file
string
The filename for the tracing output.
Console
debug.stopGoTrace()
RPC
{"method": "debug_stopGoTrace", "params": []}