Runtime Tracing

debug_goTrace

Turns on Go runtime tracing for the given duration and writes trace data to disk.

Parameters

Return Value

None

Example

Console

> debug.goTrace("go.trace", 5)
null

HTTP RPC

$ curl -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"debug_goTrace","params":["go.trace",5],"id":1}' https://public-en-baobab.klaytn.net
{"jsonrpc":"2.0","id":1,"result":null}

debug_startGoTrace

Starts writing a Go runtime trace to the given file.

Parameters

Return Value

None

Example

Console

> debug.startGoTrace("go.trace")
null

HTTP RPC

$ curl -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"debug_startGoTrace","params":["go.trace"],"id":1}' https://public-en-baobab.klaytn.net
{"jsonrpc":"2.0","id":1,"result":null}

debug_stopGoTrace

Stops writing the Go runtime trace.

Parameters

None

Return Value

None

Example

Console

> debug.stopGoTrace()
null

HTTP RPC

$ curl -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"debug_stopGoTrace","params":[],"id":1}' https://public-en-baobab.klaytn.net
{"jsonrpc":"2.0","id":1,"result":null}

Last updated