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

Output profiling data as JSON, with additional metadata #3329

Merged
merged 9 commits into from
May 15, 2023

Conversation

romac
Copy link
Member

@romac romac commented May 12, 2023

Closes: #3332

Description


PR author checklist:

  • Added changelog entry, using unclog.
  • Added tests: integration (for Hermes) or unit/mock tests (for modules).
  • Linked to GitHub issue.
  • Updated code comments and documentation (e.g., docs/).
  • Tagged one reviewer who will be the one responsible for shepherding this PR.

Reviewer checklist:

  • Reviewed Files changed in the GitHub PR explorer.
  • Manually tested (in case integration/unit/mock tests are absent).

seanchen1991 and others added 8 commits May 12, 2023 15:05
* Initial version to store profiling in file

* Open profiling file only on start

* Use OnceCell instead of RefCell

* Update tracing from info to trace for profiling

* Revert "Update tracing from info to trace for profiling"

This reverts commit 5c9117a4daa83664a562f0bdbcb135996586c910.
Copy link
Contributor

@ljoss17 ljoss17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! I saw we removed some profiling data, do we consider them as not useful ?

crates/relayer/src/chain/cosmos.rs Show resolved Hide resolved
crates/relayer/src/chain/cosmos.rs Show resolved Hide resolved
crates/relayer/src/chain/cosmos/simulate.rs Show resolved Hide resolved
crates/relayer/src/chain/endpoint.rs Show resolved Hide resolved
@romac
Copy link
Member Author

romac commented May 15, 2023

Yes they are too noisy and are not actually bottlenecks.

@romac romac marked this pull request as ready for review May 15, 2023 11:51
@romac romac merged commit e50a109 into master May 15, 2023
@romac romac deleted the perf/json-profiling branch May 15, 2023 11:51
pratikbin pushed a commit to pratikbin/hermes that referenced this pull request May 24, 2023
…ems#3329)

* Add time calls

* Instrument event monitor

* Profiling to json

* Initial version to store profiling in file

* Open profiling file only on start

* Use OnceCell instead of RefCell

* Update tracing from info to trace for profiling

* Revert "Update tracing from info to trace for profiling"

This reverts commit 5c9117a4daa83664a562f0bdbcb135996586c910.

* Use HHMMSS in profile file name

* Pad numbers

* Add profiling for wait time in 'wait_and_build_update_client_with_trusted'

* Add chain_id to profiling data

* Turn warnings to debug

* Add changelog entry

---------

Co-authored-by: Sean Chen <skypemaster007@gmail.com>
Co-authored-by: Luca Joss <43531661+ljoss17@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Output profiling data as JSON, with additional metadata
3 participants