-
Notifications
You must be signed in to change notification settings - Fork 88
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
perf(wasm): log RPC calls latency #818
Conversation
c15611f
to
6570422
Compare
8a19d87
to
08326e0
Compare
Logs produced by running built-in function call request:
|
I have two questions based on observation.
|
In general, yes, when I submit code for review it is almost always me deliberately doing something :) This PR adds latency logging to be observable in the browser only (through wasm, I should have stated that in the PR description probably). So in a non-wasm context we don't need latency measurement (at least at this point), that is the reason why all the relevant code is put under Updated the PR description to reflect that.
No, there is no compilation issue, just logical separation of latency measurement sections. |
Good catch @ICavlek , thank you! |
97f23b5
to
dffee0e
Compare
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.
LGTM :)
This PR adds logging (into a browser's console when running Beerus through WebAssembly) of RPC calls latency, both to Ethereum via Helios and to Starknet. Any logging outside of wasm context is out of scope of this PR.