-
Notifications
You must be signed in to change notification settings - Fork 7
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
Allow Tokio Console support #517
Merged
b-yap
merged 14 commits into
main
from
512-investigate-occasional-high-cpu-usage-of-vault-clients
May 22, 2024
Merged
Changes from 7 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
7f65090
first iteration:
b-yap 08ae810
update on tokio version, based on:
b-yap 191ecc5
use `tracing` library, instead of log.
b-yap f042087
remove unnecessary logs;
b-yap 87ad4d5
cleanup zombie task
b-yap a0d233d
Update README.md
b-yap c6d5e25
remove duplicate `Parachain Block Listener`
b-yap e77d7ac
https://github.com/pendulum-chain/spacewalk/pull/517/files#r1600267305
b-yap bd13f8f
https://github.com/pendulum-chain/spacewalk/pull/517#discussion_r1600…
b-yap a02b192
https://github.com/pendulum-chain/spacewalk/actions/runs/9094123182/j…
b-yap 102f58c
remocehttps://github.com/pendulum-chain/spacewalk/actions/runs/909551…
b-yap 5507a2a
https://github.com/pendulum-chain/spacewalk/actions/runs/9096987912/j…
b-yap 6ef16b1
https://github.com/pendulum-chain/spacewalk/actions/runs/9098087121/j…
b-yap ff168c6
https://github.com/pendulum-chain/spacewalk/actions/runs/9108826563/j…
b-yap File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[build] | ||
rustflags = ["--cfg", "tokio_unstable"] | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to make
tokio-console
work::There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the Rust stable version, there hasn't been any problems. The
tokio-console
command displays just fine, although I was not able to see the histogram.The worst it could do would be returning a blank view.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't work for me, unfortunately I have to explicitly pass the
RUSTFLAGS="--cfg tokio_unstable"
when trying to run or build the client.I assume it's because I do have a
~/.cargo/config.toml
file where I already specify some rust flagsand this might override the workspace configuration.
I confirmed this by removing my 'global' config.toml and then recompiling. This worked.
Generally I would prefer if we could enable this
tokio-console
thing with an extra feature flag and have it disabled by default. Do you think this would be possible @b-yap?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See e77d7ac
I tried to set it through
[env]
.cargo/config.toml, and it didn't work. AllRUSTFLAGS
,CARGO_ENCODED_RUSTFLAGS
andCARGO_BUILD_FLAGS
won't work.I also tried to do it through a build script and didn't work:
and
println!("cargo:rustc-flags=\"--cfg tokio_unstable\"");
as explained in rust-lang/cargo#10141.
In the end I updated the doc to tell the user to set the rustflags themselves.