-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ScopeDurationLogger is used to log a warning for scopes (eg fn) that take longer than 1 millisecond (by default) to execute. The duration threshold can be changed at runtime with env var: LOG_SLOW_SCOPE_THRESHOLD=0.000001 cargo run The default of 1 millisecond is specified as: LOG_SLOW_SCOPE_THRESHOLD=0.001 The ScopeDurationLogger is used at most execution entry points, eg: * all rpc methods * peer message handlers * main to peer message handlers * peer to main message handlers The idea is to gain a better understanding of where we are doing slow processing. There might be some surprises and low hanging fruit.
- Loading branch information
Showing
5 changed files
with
246 additions
and
0 deletions.
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
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
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
Oops, something went wrong.