140 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
openharmony_ci 602070087f !1655 fix debugger signal bugs
Merge pull request !1655 from Gymee/debugger_bugfix_master
2022-07-06 01:35:46 +00:00
Gymee 789c97372c fix debugger signal bugs
Signed-off-by: Gymee <yumeijie@huawei.com>
Change-Id: I42ca0cc591a7b0697d89b02081152fd763251d2a
2022-07-05 11:05:19 +08:00
hjzhangcm db8cc3a082 Modify static alarm
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-07-04 17:20:40 +08:00
openharmony_ci fdf56094d6 !1716 Optimize variable-attribute-view problem about object,string show
Merge pull request !1716 from wwx1083752/master
2022-07-04 03:00:32 +00:00
wengchangcheng 54a5e7de39 Descriptor: add debugger test
details: add step into test
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5F3A8

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Ife8d2421528134b7d259bebce60be786a9ff4876
2022-07-02 11:20:47 +08:00
liang-kaixuande 2b87853073 Optimize variable-attribute-view problem about object/string show
1.Optimize variable-attribute-view problem about object show
2.Optimize variable-attribute-view problem about string show

issue:https://gitee.com/liang-kaixuande/ark_js_runtime/issues/I5EZJI

Signed-off-by: liang-kaixuande <wubinbin33@huawei.com>
2022-07-01 14:19:32 +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
openharmony_ci 2d709d2b8f !1663 Increase tracing_impl domain
Merge pull request !1663 from buzhuyu/master
2022-06-30 12:23:16 +00:00
openharmony_ci 49bc0a8c1f !1462 :Optimize variable-attribute-view problem about error,number,iterator show
Merge pull request !1462 from hunili/master
2022-06-30 11:56:26 +00:00
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 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
hunili 5450162817 Optimize variable-attribute-view problem about error,number,iterator show
1.Optimize Error show info
2.Optimize Number show info
3.Add Set/Map Iterator propertie
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I59VDK

Signed-off-by: hunili <lihucheng1@huawei.com>
Change-Id: I8a8452d08b983e0bb50e87bab18e27dbe3f7968e
2022-06-30 09:06:12 +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
wengchangcheng 4b64683dcf Descriptor: support update value of old eval function
details:
update framehandler before setvalue
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5BSY5

Change-Id: Ib6c576e695f3ddcd4387d01e5f6368641bb0d526
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
2022-06-11 12:00:19 +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 bb50d4aefe Descriptor: debugger refactor of independent js_runtime [ part-2 ]
details: add Create function by PtJson
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5BBPM

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I2870f1d377bd6b4adc0d12d33cba84d53af7f076
2022-06-08 21:41:50 +08: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
openharmony_ci 69f27f5326 !1476 Added method to set sampling interval
Merge pull request !1476 from buzhuyu/master
2022-06-07 06:38:16 +00:00
openharmony_ci 225df7058a !1506 add statsUpdate and lastObjectId event
Merge pull request !1506 from Riachel/master
2022-06-07 04:26:00 +00: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
xwx1135370 01c0660346 Added method to set sampling interval
add ProfileImpl.SetSamplingInterval
ISSUE:https://gitee.com/openharmony/ark_js_runtime/issues/I5A8ZK

Signed-off-by: buzhuyu <buzhuyu@huawei.com>
Change-Id: I39912ff70935d947222e9aef0340063ab82b6717
2022-06-06 20:40:41 +08:00
openharmony_ci 23e596755b !1505 deal with invalid exception
Merge pull request !1505 from changcheng/add_empty_check
2022-06-06 04:19:43 +00:00
openharmony_ci d94412392b !1493 fix codex warning
Merge pull request !1493 from hjzhangcm/master
2022-06-06 04:15:17 +00:00
wengchangcheng 28619202a3 Descriptor: deal with invalid exception
details: add empty check
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5AT96

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I114a557d7b431f65b1a6145c2f0a0e674789e771
2022-06-06 11:40:01 +08:00
hjzhangcm 6741c67039 describe:fix codex warning
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5AM6L

Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-06-06 11:27:19 +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
openharmony_ci 36f7ae1897 !1447 support memory params configuration
Merge pull request !1447 from lukai/master
2022-05-31 03:30:30 +00:00
lukai 1a5e085031 support memory parameters configuration
1. heap configuration including heapSize and space capaticity
2. other parameters such as gcThreadNum, longPauseTime.
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I59HYO?from=project-issue

Signed-off-by: lukai <lukai25@huawei.com>
Change-Id: If3bfe7338ae0712809d9750fef3bbbb14017223f
2022-05-30 17:22:08 +08:00
buzhuyu 34751aae65 add cpuProfileNode.hitCount member
ISSUE:https://gitee.com/openharmony/ark_js_runtime/issues/I59YDA
Signed-off-by: buzhuyu <buzhuyu@huawei.com>
2022-05-30 16:59:12 +08:00
wengchangcheng 568ec4cbf9 Descriptor: support disable debugger and runtime domain
details: add disable method for debugger and runtime
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I59QMX

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Iace48b02a2c5fc9b15c1fed94a67e95a4e857933
2022-05-28 18:43:32 +08:00
openharmony_ci c41ca7a394 !1448 Modify the time type and isStart
Merge pull request !1448 from buzhuyu/master
2022-05-28 10:19:33 +00:00
buzhuyu f241c7f7e4 Modify the time type
ISSUE:https://gitee.com/openharmony/ark_js_runtime/issues/I59LQ9
Signed-off-by: buzhuyu <buzhuyu@huawei.com>
2022-05-28 17:26:53 +08:00
wengchangcheng c880e296ef Descriptor: fix profiler dependent debugger
details: add ProfilerNotify without check debug mode
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I59OYR

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I9bd2a88ff032e3d8f113a436e86fd397fac73770
2022-05-28 10:55:53 +08:00
openharmony_ci 5aefa13171 !1419 make the debugger pause at the begin of PendingJob::ExecutePendingJob function
Merge pull request !1419 from Gongyuhang/master
2022-05-26 00:51:04 +00:00
openharmony_ci 06d5ae3c45 !1427 Implementation of ProfilerImpl.Start and ProfilerImpl.Stop
Merge pull request !1427 from buzhuyu/master
2022-05-25 10:26:42 +00:00
buzhuyu 2fdb093ad0 Implementation of ProfilerImpl.Start and Stop
ISSUE:https://gitee.com/openharmony/ark_js_runtime/issues/I56YVM
Signed-off-by: buzhuyu <buzhuyu@huawei.com>
2022-05-25 16:33:30 +08:00
Gongyuhang 77411b7e75 Descriptor:
The debugger behaves unexpectedly after step operations
    act on the commands after a command modified by "await"
Details:
    Make the debugger pause at the begin of
    PendingJob::ExecutePendingJob function
Issue:
    https://gitee.com/openharmony/ark_js_runtime/issues/I5936Z

Signed-off-by: Gongyuhang <gongyuhang5@huawei.com>
2022-05-25 14:55:05 +08:00
Gymee 01da4a53b9 fix this value when get scope chain
Signed-off-by: Gymee <yumeijie@huawei.com>
Change-Id: I88aace2929e4cd995588d1cffcb2ab2102b045df
2022-05-25 12:38:10 +08:00
openharmony_ci d5d57b6650 !1403 adjust local variables shown to IDE
Merge pull request !1403 from Gymee/tweaks_master
2022-05-24 10:52:39 +00:00