17 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
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 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 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 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
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
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
wwx1083752 99f8a0f659 Merge branch 'master' of gitee.com:openharmony/ark_js_runtime into master 2022-04-19 02:59:17 +00: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 d16223a490 add HeapProfiler Interface
Signed-off-by: wwx1083752 <wubinbin33@huawei.com>
2022-04-14 12:01:14 +08:00
Riachel 841f10ce17 codex
Signed-off-by: wwx1083752 <wubinbin33@huawei.com>
2022-04-12 16:12:46 +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