Skip to content

Logging conditionals #545

Answered by jbachorik
ghost asked this question in Q&A
Jun 2, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

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 :(

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ghost
Comment options

@jbachorik
Comment options

Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant