diff options
author | George Hu <huyubohyb@gmail.com> | 2022-11-15 16:29:54 -0800 |
---|---|---|
committer | George Hu <huyubohyb@gmail.com> | 2022-11-15 19:09:05 -0800 |
commit | 7fe3586cda5b683766ec6b6d5ca2d98c2baaf162 (patch) | |
tree | 46e53b96370243318ffd4fcced955251f1ef8df3 /lldb/packages | |
parent | fcaf6dd597ea93eb8f746dda236d859e071346c5 (diff) | |
download | llvm-7fe3586cda5b683766ec6b6d5ca2d98c2baaf162.tar.gz |
Send statistics in initialized event
Differential Revision: https://reviews.llvm.org/D138077
Diffstat (limited to 'lldb/packages')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/tools/lldb-vscode/vscode.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/tools/lldb-vscode/vscode.py b/lldb/packages/Python/lldbsuite/test/tools/lldb-vscode/vscode.py index c2de4ad5c7d9..49f268ae2879 100644 --- a/lldb/packages/Python/lldbsuite/test/tools/lldb-vscode/vscode.py +++ b/lldb/packages/Python/lldbsuite/test/tools/lldb-vscode/vscode.py @@ -134,6 +134,7 @@ class DebugCommunication(object): self.configuration_done_sent = False self.frame_scopes = {} self.init_commands = init_commands + self.initialized_event = None @classmethod def encode_content(cls, s): @@ -231,6 +232,8 @@ class DebugCommunication(object): self._process_stopped() tid = body['threadId'] self.thread_stop_reasons[tid] = body + elif event == 'initialized': + self.initialized_event = packet elif event == 'breakpoint': # Breakpoint events come in when a breakpoint has locations # added or removed. Keep track of them so we can look for them |