This patch include change to send statistic in intialized event. Dependency diff: https://reviews.llvm.org/D137665
This change will give VSCode side the opportunity to warn users of zero/large debug info right after their debug sessions are launched.
The DAP initialized event should look like
{
"event":"initialized",
"seq":0,
"statistics": {
"memory": <JSON string>
"targets": <JSON string>, // it's a JSON array, breakpoints info included in each target
<metadata_key: value> // pairs
},
"type":"event"
}Refactored the test: rename it to eventStatistic and test both initialized event and terminated event. Reuse some code.