Add the stop count to "statistics dump" in each target's dictionary.
authorGreg Clayton <gclayton@fb.com>
Fri, 12 Nov 2021 23:26:27 +0000 (15:26 -0800)
committerGreg Clayton <gclayton@fb.com>
Tue, 16 Nov 2021 02:59:09 +0000 (18:59 -0800)
commitdbd36e1e9f16059f1be1d15f8549a6e538906679
treefc79a9ea28c47b147f6b8f4e9da9198398f74715
parent391b0ba603ab4e2b5fcdfe29a2907a67831293df
Add the stop count to "statistics dump" in each target's dictionary.

It is great to know how many times the target has stopped over its lifetime as each time the target stops, and possibly resumes without the user seeing it for things like shared library loading and signals that are not notified and auto continued, to help explain why a debug session might be slow. This is now included as "stopCount" inside each target JSON.

Differential Revision: https://reviews.llvm.org/D113810
lldb/source/Target/Statistics.cpp
lldb/test/API/commands/statistics/basic/TestStats.py