Commit Graph

18 Commits

Author SHA1 Message Date
buzhuyu fd7c9c54ba Increase tracing_impl domain
details:
1.Increase tracing_impl.cpp and tracing_impl.h
2.Add types,returns,params and events related to tracing
3.Add UT related to tracing
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5DZUR

Signed-off-by: buzhuyu <buzhuyu@huawei.com>
2022-06-30 11:28:54 +08:00
Riachel 4a1c835985 Descriptor: modify debug event test
details:
change ToObject to ToJson
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5CRWF

Signed-off-by: Riachel <caolili14@huawei.com>
2022-06-20 09:04:03 +08:00
wengchangcheng d1b757d951 Descriptor: debugger refactor of independent js_runtime [ part-5 ]
details: enable PtJson
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5CHWX

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I143952f7f0a44f235067b8d03cba33d02e771ece
2022-06-16 20:28:02 +08:00
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
wengchangcheng f4db7283b6 Descriptor: modify get child item from json
details:
add Result to judge type error or not exist
delete unused interface
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5BL2A

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I2beb7c730121900286ce0485902aa3ca620e3cd8
2022-06-09 21:40:58 +08:00
wengchangcheng a9d67a0b2a Descriptor: debugger refactor of independent js_runtime [ part-2 ]
details: add ToJson sample by PtJson
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5BBPM

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Icb84d3c163a662230730f4e27362f3ea23b80e1c
2022-06-08 21:42:06 +08:00
wengchangcheng c2e20b03d5 Descriptor: debugger refactor of independent js_runtime [ part-1 ]
details: using stl instead of js_runtime container ans string
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5AYKS

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I32b4809a4bbd759a562326a59e0cfb0e8e728297
2022-06-07 17:47:53 +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 a4c2a56a0d Descriptor: debugger refactor [ part-2 ]
details:
1. modify unique ptr to const reference
2. delete some unused method
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I59PAK

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I9432b021b2257932d943a832e7401e25d5a1c37d
2022-06-04 21:38:46 +08:00
Riachel e2b4ee1f5b add heapprofiler domain event
1.add heapStatsUpdate
2.add lastSeenObjectId
3.add reportHeapSnapshotProgress

issue:https://gitee.com/openharmony/ark_js_runtime/issues/I55VKF

Signed-off-by: Riachel <caolili14@huawei.com>
2022-05-05 16:09:58 +08:00
wubinbin 2146484c8c add profiler
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I53W91

Signed-off-by: wubinbin <wubinbin33@huawei.com>
2022-04-24 10:10:47 +08:00
lifansheng a725676a6c Runtime architecture adjustment
Description
  Cut out most of the initialization logic in Runtime::Create and disconnect the
  inheritance relationship of most classes such as JSThread.
Issue:
  #I53418: Runtime architecture adjustment

Signed-off-by: lifansheng <lifansheng1@huawei.com>
Change-Id: Ib9c1a40354f77d32e515e23334e7f4b4a4fa3259
2022-04-21 14:37:31 +08:00
wengchangcheng d6c835caea Descriptor: debugger refactor
details:
1. debugger refactor, don't use runtime debugger
2. fix debugger crash

issue: https://gitee.com/openharmony/ark_js_runtime/issues/I52VXK

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I08e3c86bf659b9e0a44d014d13b11462d50218b3
2022-04-17 01:16:26 +08:00
wengchangcheng 0b4981525d refactor stl container
1. using runtime container instead of stl container
2. change debugger line amd column type to int32_t

issue: https://gitee.com/openharmony/ark_js_runtime/issues/I50NHW

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I0eb4651f17c6f6894f11de1ba904bcbe83a57db7
2022-04-06 16:05:22 +08:00
zhangyukun a97747fe18 Description:sync from code from wgr_master to ohos
Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
Change-Id: Ic66a9e649de8c0ce530483296fe323b8f50621fb
2021-12-21 09:36:03 +08:00
wengchangcheng 8c603a3b66 fix debugger crash
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
2021-09-30 16:28:25 +08:00
zhangyukun 7ffcc4b20f Sync js_runtime to openharmony
Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
2021-09-08 09:20:53 +08:00
wanyanglan 86cfe52253 add ark js_runtime
Signed-off-by: wanyanglan <wanyanglan1@huawei.com>
Change-Id: Iac7851492f10c0ef1303c621febb65e5fdd22e41
2021-09-05 16:05:06 +08:00