-
Hi, Logging method entry & exit points is already quite useful. Is there any way to achieve this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
This would be quite difficult to achieve. There is no realistic way to identify a conditional or loop apart of the line number which might be matching also other code on the same line. What I can imagine is a special tracing mode where all conditionals (loops are in the end transformed to conditional jumps as well) are instrumented to capture the defined context (instance fields, local variables etc.) and store it in an efficient form. Unfortunately, this is not something BTrace could do OOTB - mostly because this mode of tracing will severely affect the application performance and is more like debugging than a light-weight tracing :( |
Beta Was this translation helpful? Give feedback.
This would be quite difficult to achieve. There is no realistic way to identify a conditional or loop apart of the line number which might be matching also other code on the same line.
What I can imagine is a special tracing mode where all conditionals (loops are in the end transformed to conditional jumps as well) are instrumented to capture the defined context (instance fields, local variables etc.) and store it in an efficient form.
Unfortunately, this is not something BTrace could do OOTB - mostly because this mode of tracing will severely affect the application performance and is more like debugging than a light-weight tracing :(