[wasm][debugger] Improve debugger performance based on JMC (#86982)
authorThays Grazia <thaystg@gmail.com>
Fri, 14 Jul 2023 13:46:00 +0000 (10:46 -0300)
committerGitHub <noreply@github.com>
Fri, 14 Jul 2023 13:46:00 +0000 (10:46 -0300)
commitae99bb2e7a0a5db7c2bff129322965fd3c6e820d
tree3a5dfed5eea248f099ddd2cdc6499cd55ef18ad2
parent2ad94b4ecb13c5b39d0ad02d108832522e65260f
[wasm][debugger] Improve debugger performance based on JMC (#86982)

* Improve debugger performance.

* Loading assembly bytes if JMC is disabled after the debugger session is started.

* Fix CI.

* Load symbols on demand if JMC is enabled, we don't need to spend a lot of time loading information from 149 assemblies if we will probably not need all of them.

* Impriving the performance sending only metadata and not the full assembly.

* Fixing compilation error on tvos

* Apply suggestions from code review

Co-authored-by: Ankit Jain <radical@gmail.com>
* Apply suggestions from code review

Co-authored-by: Ankit Jain <radical@gmail.com>
* fix changes from code review

* addressing @radical comments

* addressing @radical and @lewing comments

---------

Co-authored-by: Ankit Jain <radical@gmail.com>
src/mono/mono/component/debugger-agent.c
src/mono/mono/component/debugger-protocol.h
src/mono/mono/component/mini-wasm-debugger.c
src/mono/wasm/debugger/BrowserDebugProxy/DebugStore.cs
src/mono/wasm/debugger/BrowserDebugProxy/MonoProxy.cs
src/mono/wasm/debugger/BrowserDebugProxy/MonoSDBHelper.cs