35 Commits

Author SHA1 Message Date
openharmony_ci 85ffbea88f !1740 heapprofiler support traceAllocation
Merge pull request !1740 from Riachel/master
2022-07-09 15:17:20 +00:00
Riachel 7ad57f2544 Descriptor: heapprofiler support traceAllocation
details:
heapprofiler support traceAllocation
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5FOAE

Signed-off-by: Riachel <caolili14@huawei.com>
2022-07-08 16:42:46 +08:00
wengchangcheng cd90e396a7 Descriptor: ark hilog refactor
details:
1. use hilog in ohos device
2. use panda logger in host
issue:  https://gitee.com/openharmony/ark_js_runtime/issues/I5FR5J

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I6f5de00751154bdb6aac3101515961a3a4432e80
2022-07-06 22:55:49 +08:00
hjzhangcm db8cc3a082 Modify static alarm
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-07-04 17:20:40 +08:00
wengchangcheng 072f027677 Descriptor: add nullptr check
details: add nullptr check in Returns
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5EYMB

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Ic5b15f0c37b1ff1db71d713ba405ee3c50dce942
2022-07-01 09:21:43 +08:00
Riachel 19638b87af Descriptor: fix some bugs for heapstatsupdate event
details:
change timestamp
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5ETMX

Signed-off-by: Riachel <caolili14@huawei.com>
2022-06-30 11:10:16 +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 73519fc545 Descriptor: debugger refactor of independent js_runtime [ part-3 ]
details: modify Params::Create to cJson
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5BUI2

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I7a89ef24a0c8e999fc76429cda34f5f0e05f4946
2022-06-15 21:49:34 +08:00
openharmony_ci 31e7e2ecf3 !1532 fix codex warning
Merge pull request !1532 from hjzhangcm/master
2022-06-09 07:50:01 +00:00
wengchangcheng 1ee5638cf9 Descriptor: modify unique_ptr and add ASSERT
details:
1. modify unique_ptr t oconst &
2. modify unit32_t to int32_t
3. add ASSERT before get optional value
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5BHDS

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Ie1938acfd0f30389892933adf224af1940143805
2022-06-09 12:23:48 +08:00
openharmony_ci e013c8247a !1533 modify for some bugs
Merge pull request !1533 from Riachel/master
2022-06-09 02:06:23 +00:00
wengchangcheng 25405f84a3 Descriptor: debugger refactor of independent js_runtime [ part-2 ]
details: use pt json to parse message
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5BBPM

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I3bdc5475f8d500754d0b58af28a17775fbcf2e7c
2022-06-08 21:41:34 +08:00
Riachel 3545d16472 Descriptor: modify for some bugs
details:
1. delete trackAllocations_
2. modify size_t to int64
3. modify IntegerRef to NumberRef
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5BCAD

Signed-off-by: Riachel <caolili14@huawei.com>
2022-06-08 17:48:49 +08:00
hjzhangcm 7555cf4213 fix codex warning issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5BCD6?from=project-issue
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-06-08 16:29:33 +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
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
Riachel df34983177 add reportprogress
reportprogress value before StopHeapTracking or DumpHeapSnapshot
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I57VAP

Signed-off-by: Riachel <caolili14@huawei.com>
2022-05-17 20:12:15 +08:00
dingwen 61b6782b65 Snapshot code optimization
Description:Snapshot code optimization include modify class name SnapShotSerialize to SnapShotHandler, delete some magic number, add interface to acquire global env and global const object index.
Issue:https://gitee.com/openharmony/ark_js_runtime/issues/I55CQ3

Signed-off-by: dingwen <dingwen6@huawei.com>
Change-Id: I338028c5cfd4f992095f2bded2956e33f275bb1b
2022-05-07 09:23:06 +08:00
Riachel 3cbf8878ac add heapprofiler domain
Signed-off-by: Riachel <caolili14@huawei.com>
2022-04-28 16:15:49 +08:00
Riachel 341bf16549 add heapprofiler interface
Signed-off-by: wwx1083752 <wubinbin33@huawei.com>
2022-04-22 17:14:12 +08:00
Riachel 6991e9269f add heapprofiler interface
Signed-off-by: wwx1083752 <wubinbin33@huawei.com>
2022-04-22 12:09:04 +08:00
Riachel 03262e3bda add heapprofiler interface
Signed-off-by: wwx1083752 <wubinbin33@huawei.com>
2022-04-22 10:42:00 +08:00
wwx1083752 99f8a0f659 Merge branch 'master' of gitee.com:openharmony/ark_js_runtime into master 2022-04-19 02:59:17 +00:00
wwx1083752 b3d6f2e001 modify comment
Signed-off-by: wwx1083752 <wubinbin33@huawei.com>
2022-04-19 10:41:38 +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
Riachel 8581674532 add HeapProfiler Interface
Signed-off-by: wwx1083752 <wubinbin33@huawei.com>
2022-04-14 14:15:40 +08:00
Riachel d16223a490 add HeapProfiler Interface
Signed-off-by: wwx1083752 <wubinbin33@huawei.com>
2022-04-14 12:01:14 +08:00
Riachel 28f11ea63f codex
Signed-off-by: wwx1083752 <wubinbin33@huawei.com>
2022-04-12 18:08:38 +08:00
Riachel c702c76bda codex
Signed-off-by: wwx1083752 <wubinbin33@huawei.com>
2022-04-12 17:55:09 +08:00
Riachel 7fffdd00f4 codex
Signed-off-by: wwx1083752 <wubinbin33@huawei.com>
2022-04-12 17:06:27 +08:00
Riachel b96f4ff09b modify CodeDEX
Signed-off-by: wwx1083752 <wubinbin33@huawei.com>
2022-04-12 14:54:56 +08:00
Riachel 6b24845290 add heapprofiler interface
Signed-off-by: wwx1083752 <wubinbin33@huawei.com>
2022-04-08 17:07:03 +08:00