[lldb-dev] Breakpoint + callback performance ... Can it be faster?
Roman Popov via lldb-dev
lldb-dev at lists.llvm.org
Sun Feb 12 10:34:52 PST 2017
Hello Benjamin , all
>>I recently started using lldb to write a basic instrumentation tool for
>>tracking the values of variables at various code-points in a program.
I have the same problem of tracing some variables and debugging
application post-mortem. Without knowing about your experience I've
started walking same path and encountered same problem. In my case
inserting an empty callback slows-down application by 100x. This is
not acceptable for me, because instead of minutes I got hours of
runtime.
Did you found any faster solution?
My current plan is to solve it with code injection: I plan to find
pointers to interesting values using debugger scripting and then
inject code to trace them.
Does LLDB supports code injection ? I've found information only about
gdb https://sourceware.org/gdb/onlinedocs/gdb/Compiling-and-Injecting-Code.html
but not about lldb
-Roman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20170212/350221ad/attachment.html>
More information about the lldb-dev
mailing list