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

feat: improve visibility for runtime performance #4038

Merged
merged 1 commit into from
Jul 8, 2021

Conversation

matklad
Copy link
Contributor

@matklad matklad commented Mar 5, 2021

tracing::span records how long it took to run a block of code and prints
this into into log.

See

https://github.com/near/nearcore/blob/ff01c544ce2675fadbf0284af52b356a383b27a8/docs/architecture.md#runtimenear-vm-runner

for the info on the tracing infra

Test Plan

Only active with debug logging level enabled, doesn't need additional testing.

Copy link
Collaborator

@bowenwang1996 bowenwang1996 left a comment

Choose a reason for hiding this comment

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

Will info_span print the log on the INFO level? That is probably not what we want

@stale
Copy link

stale bot commented Jul 1, 2021

This PR has been automatically marked as stale because it has not had recent activity in the 2 weeks.
It will be closed in 3 days if no further activity occurs.
Thank you for your contributions.

@stale stale bot added the S-stale label Jul 1, 2021
@bowenwang1996
Copy link
Collaborator

@matklad please resolve the merge conflict and fix CI :)

@stale stale bot removed the S-stale label Jul 1, 2021
@matklad matklad force-pushed the runtime-tracing branch from db7b931 to c81db20 Compare July 8, 2021 12:40
@matklad matklad requested a review from EgorKulikov as a code owner July 8, 2021 12:40
tracing::span records how long it took to run a block of code and prints
this into into log.

See

https://github.com/near/nearcore/blob/ff01c544ce2675fadbf0284af52b356a383b27a8/docs/architecture.md#runtimenear-vm-runner

for the info on the tracing infra
@matklad matklad force-pushed the runtime-tracing branch from c81db20 to 696cdc5 Compare July 8, 2021 12:40
@matklad
Copy link
Contributor Author

matklad commented Jul 8, 2021

Rebased, applying auto merge as I don't think anything changed here.

cc @near/nodex (@bowenwang1996, should we create this team alias for GH pings?), I think we might want more of this throughout the stack!

@near-bulldozer near-bulldozer bot merged commit eaf278d into near:master Jul 8, 2021
@matklad
Copy link
Contributor Author

matklad commented Jul 8, 2021

The issue for "have more of this" is #4040

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.

3 participants