8 Commits

Author SHA1 Message Date
wengchangcheng 1cc4e3a60e Descriptor: debugger refactor of independent js_runtime [ part-4 ]
details:
1. Add PtBaseReturns::ToJson
2. Add PtBaseEvents::ToJson
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5C3FS

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Ic8028d79f62b91724f22c63e8062d57367b5f27e
2022-06-15 22:24:45 +08:00
Riachel 557c07bb07 Descriptor: support heapprofiler domain
details:
1. add statsUpdate event
2. add lastObjectId event
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5AUJA

Signed-off-by: Riachel <caolili14@huawei.com>
2022-06-07 11:29:50 +08:00
wengchangcheng 9ea13c48f9 Descriptor: debugger refactor [ part-1 ]
details:
1. delete unused method
2. modify file dir
3. add event channel for every domain
4. implement domain function in agent and delete js_backend
5. modify dispatchTable to static
6. modify debugger_api
7. modify js_debugger and add debugger_executor
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I58LOO

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I7747bf3ad66e9a180d6179e45be5bcaf4161b29b
2022-06-01 23:00:13 +08:00
wengchangcheng a4f9603e75 Descriptor: modify stream and add switch of enable_dump_in_faultlog
details:
1. call EndOfStream after WriteChunk
2. add switch of enable_dump_in_faultlog
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I58KLM

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I1c9b26873eae47f8e9e5788cd7a477f32738efc9
2022-05-21 16:37:04 +08:00
xiongluo 5122d18dca Add interface to dump in faultlog and private param to hide string and number
Signed-off-by: xiongluo <xiongluo@huawei.com>
2022-05-17 22:42:10 -10:00
wwx1083752 cf9ab9530c support dump default heapfile
1. add FileStream::Good
2. dump default file when input file is invalid

issue:https://gitee.com/wwx1083752/ark_js_runtime/issues/I55E7O

Signed-off-by: wwx1083752 <wubinbin33@huawei.com>
2022-05-05 10:43:08 +08:00
Riachel 3cbf8878ac add heapprofiler domain
Signed-off-by: Riachel <caolili14@huawei.com>
2022-04-28 16:15:49 +08:00
wengchangcheng a666966691 Descriptor: add file stream for heap dump
details: add file stream for heap dump
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I54S6V

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I45435df049d5e67480b5d8332d3e54895f15f796
2022-04-26 16:07:39 +08:00