-
Notifications
You must be signed in to change notification settings - Fork 500
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
-Z size filter is needed #780
Comments
I want enhanced the debugging message generated while dynamic tracing, also. because we have to enhance the filtering rules that the function could be instrumented. so, debugging message must include the detail of instrumentating informations, for example which function have been patched and the patched instruction. |
@ParkHanbum that kind of information is useful only for development. Please add it for your need and remove when you want to push to upstream, ok? |
Pushed review/size-filter-v1 Example: My test program has 3 functions - main, foo and bar - and their size are 94, 95 and 67 respectively. So the setting it with 70 will remove the last function (bar) in the trace.
And 60 will show it again:
|
@namhyung Thanks a lot for doing this. I just tested it for node and found that it has huge speed up.
It's a lot faster than only using time-filter. I also found that some big functions have really a short running time especially when it has a big switch condition or makes an early return. I think it'd be better to use both |
In addition to this, it'd also make a better speedup if we can detect the size of each library function. Maybe we should first resolve where the function is. |
Here is another test for chrome. It works fine as follows but I'm not clear if it's faster:
It gets crashed sometimes as follows:
|
Pushed review/size-filter-v2 Changelog:
|
Merged 4eec7f8 |
If we have
-Z
size filter that can filter out some small functions based on their size, it might be another big improvement along with full dynamic tracing support.It's important especially for tracing speed, it will make huge tracing speed up with applying
NOP
instruction tomcount
calls in small functions.It'd be also very useful for debugging some uftrace internal errors. We can narrow down the problem by adjusting the function size filtering out the tracing target functions.
The text was updated successfully, but these errors were encountered: