Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --debug=rpc and --debug=profiling flags for enabling debug output #3352

Merged
merged 12 commits into from
May 23, 2023
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Add a global flag `--debug` which allows enabling
profiling, rpc debug logs and/or profiling to json file
romac marked this conversation as resolved.
Show resolved Hide resolved
([#2852](https://github.com/informalsystems/hermes/issues/2852))
3 changes: 3 additions & 0 deletions guide/src/advanced/troubleshooting/profiling.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ Additionally, if the `--debug=profiling-json` flag is specified, Hermes will out
JSON format in a file named `hermes-YYYY-MM-DD-HHMMSS-prof.json`, in the directory specified in the `PROFILING_DIR`
env variable, or the current directory otherwise.

> __NOTE__: Outputting profiling information in JSON format in a file is only available for the `hermes start` command.
> This debug option won't do anything with the other CLIs.

```json
{"name":"fetch_node_info","src_chain":"ibc-0","elapsed":6}
{"name":"chain_status","src_chain":"ibc-0","elapsed":12}
Expand Down