119 Commits

Author SHA1 Message Date
wengchangcheng cf1abdca4e Descriptor: decrease compiler time
details use dynamic link of libark_ecma_debugger.so & libjsdebugtest.so
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5FYDR

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Ic0f7c21d0e296dbcb28753fe038f10fa4d4c8f37
2022-07-07 20:20:23 +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
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
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 81dee5abc8 !1672 fix pending job hitrace
Merge pull request !1672 from 苏重威/master
2022-06-30 08:08:38 +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
suchongwei 89d1553501 fix pending job hitrace
add hitrace point for pending job enque job and execute job

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

Signed-off-by: suchongwei <suchongwei@huawei.com>
2022-06-29 18:44:27 +08:00
huangfeijie a5f34993ee fix incorrect column number when exceptions happen
add SAVE_PC() to avoid incorrect offset
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5E0HV

Signed-off-by: huangfeijie <huangfeijie@huawei.com>
2022-06-27 22:13:21 +08:00
openharmony_ci 29edac057a !1671 fix IntBuildTaggedWithNoGC
Merge pull request !1671 from wpy111/master

Change-Id: I6c362f16a81a1411623dbdc06768f05e4a9f3ad5
2022-06-27 13:23:57 +08:00
openharmony_ci 567314c82f !1619 Increase ToJson in debugger_returns
Merge pull request !1619 from buzhuyu/master
2022-06-21 04:00:50 +00:00
openharmony_ci add005523f !1615 modify debug event test
Merge pull request !1615 from Riachel/master
2022-06-21 03:06:32 +00:00
buzhuyu f392eefad7 Increase ToJson in debugger_returns
Details:
1.delete ToObject in debugger
2.increase ToJson in debugger
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5CUIY

Signed-off-by: buzhuyu <buzhuyu@huawei.com>
2022-06-20 09:28:19 +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 6468341c72 Descriptor: delete some internal unused code
details: delete unused code
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5COHE

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I5fe62c58353839d4aac1144fc99e2cf87f4374eb
2022-06-17 23:03:42 +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 76ce8df4db !1566 Modify the type in Create and ToJson
Merge pull request !1566 from buzhuyu/master
2022-06-15 02:51:02 +00:00
buzhuyu 1f70de7e56 Modify the type in Create and ToJson
ISSUE:https://gitee.com/openharmony/ark_js_runtime/issues/I5BQOT

Signed-off-by: buzhuyu <buzhuyu@huawei.com>
2022-06-14 19:39:39 +08:00
Riachel 3b89611dd1 Descriptor: modify interface
details:
1.modify Create interface
2.add Tojson
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5C2KW

Signed-off-by: Riachel <caolili14@huawei.com>
2022-06-14 09:34:55 +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 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
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 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
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
wengchangcheng 07fb541ef4 add json utils for debugger
add json util of cJSON
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5AQMM

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Ie582ceb8ee3c5b9bd8024c25063a9b4a645792ac
2022-06-06 09:37:35 +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
yqhan 25e1273bb9 Added debugger module tests.
Issues:https://gitee.com/openharmony/ark_js_runtime/issues/I5ACV8

Describe: Breakpoints are set inside async functions and arrow
functions. Breakpoints can be hit and call stacks can be retrieved.

Signed-off-by: yqhan <hanyuqing2@huawei.com>
2022-06-02 10:50:26 +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
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
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
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
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
wengchangcheng e7be0def3b Descriptor: fix debugger testcase fail
details: free hook after thread terminate
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I56588

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Ifdf47d989ad4f49ffcb4ccb71ce910a5ef4996c8
2022-05-06 20:21:52 +08:00
wengchangcheng dcac52ac03 Descriptor:fix ut fail and modify debugger test
details:
1. fix icu path error
2. modify debugger unittest
3. modify gn target
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I55WGN

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I1c924fd90297a5172ca5aabace36b6e250dc312b
2022-05-05 20:49:16 +08:00
openharmony_ci adad023652 !1198 update bytrace warehouse name for ark_js_runtime
Merge pull request !1198 from wenlong_12/master
2022-05-05 12:31:00 +00:00
openharmony_ci cf61951f4a !1207 add heapprofiler domain event
Merge pull request !1207 from Riachel/master
2022-05-05 10:52:27 +00: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
h00611971 aa3faab847 clear extractors when destroy instances
1.remove the info concerned in the extractors when release JSPandafile.
2.clear the extractors when JSPandafile's destructor is called.
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I55CK0
Signed-off-by: h00611971 <huangfeijie@huawei.com>
2022-05-05 10:16:09 +08:00
wenlong12 edf2cd011d update bytrace warehouse name
Signed-off-by: wenlong12 <wenlong12@huawei.com>

Signed-off-by: wenlong12 <wwx1097114@DESKTOP-2021EGU.localdomain>
2022-05-05 10:05:13 +08:00
openharmony_ci 4bcfb3a72c !1179 disable unstable testcase
Merge pull request !1179 from changcheng/fix_ut_error
2022-04-28 23:36:19 +00:00
wengchangcheng ed785a039e Descriptor: disable unstable testcase
details: disable debugger single step test
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I559CM

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I5913f96c782211ff93b26cf1259a4d96e93bb801
2022-04-28 23:13:43 +08:00
wengchangcheng e8144ffd5a Descriptor: modify performance of debugger
details: skip check -1 when there's no step event
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I558VZ

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Ie65d521cbc79ddd36d05c263dd5ccfd5d82e0b5c
2022-04-28 21:12:37 +08:00
openharmony_ci e5c716767e !1160 Avoid JSBackend's pause caused by HandleBreakPoint(...) function right after its pause caused by HandleStep() function in one ByteCodePcChanged(...) function
Merge pull request !1160 from Gongyuhang/master
2022-04-28 09:48:29 +00:00