-
Notifications
You must be signed in to change notification settings - Fork 33
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
Code timing instrumentation #6
Comments
Will be included in celo-org/zexe#4 with the following interface:
and following output:
--features "timing_detailed"
|
Code uses macros:
|
The next step is to use proc macros to define which specific invocation of a function ought to compile with timing instrumentation using an attribute like
|
This already exists with the bench-utils crate |
Hmm I see. Thats cool. I will work on mine a bit and see if we can combine some features. One thing I can do is to identify the function in which the timer is called, so that one can blacklist functions from emiting log msgs |
Longer term I plan to move to infrastructure based on |
Hmm looks really interesting, looking forward to using tracing! |
I think it would be nice to have a feature that when activated, will print out the timings for various sub-procedures. A nice standardised format for printing the name of the function and the line numbers could be nice.
When the feature is not activated, this code is not compiled.
The thing I find most annoying is uninstrumenting code, only to discover I want to look at some sub function timings, and I have to reinstrument the code...
The text was updated successfully, but these errors were encountered: