Disable saving traces #8945
Replies: 3 comments 2 replies
-
|
The short answer is no, but, having investigated this in the past, it's unlikely that recording the trace is actually the thing slowing you down. The volume of data passing over the wire is much more likely to be the time sink. Depending on what the actual cause is, this can be controlled. As a test, I would "log enable gdb-remote packets" and see if you can tell what packets are being sent and when. The costliest transfers are modules and regions, but those should be triggered only when there is a change. Those events, if I remember correctly, can be disabled, possibly from the GUI (will have to verify this) but certainly from the command line. It's also obviously possible to modify the "hooks.py" file to minimize the requests set as part of "on_stop". Information in the GUI will be stale, but you can force a refresh on things you need when you need them. |
Beta Was this translation helpful? Give feedback.
-
|
You could maybe spell out in a little more detail how you re-connected to the new process and what you are trying to do with the old trace? |
Beta Was this translation helpful? Give feedback.
-
|
Done a little more digging, and I'm pretty sure (not 100%, but....) that this is not what's happening. The existing logic in hooks.py terminates the event loop when the process is no longer alive. There was a reason for this, but I think I have a better solution. If you want to try it out before it makes master:
When the event loop terminates, nothing happens afterwards. Correct me if I'm wrong - I assume the wait was not long but infiinite. Also, if you think of it, let me know what version of lldb you're using. 21 has issues. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I don't seem to be able to find a way to disable traces in the debugger.
Is there a way to do this?
It takes a lot of time when debugging a process remotely (on Android).
Beta Was this translation helpful? Give feedback.
All reactions