From 3436b07e6749a698ac05bf199eabb622b4995f11 Mon Sep 17 00:00:00 2001 From: jichuan Date: Mon, 14 Aug 2023 11:04:19 +0800 Subject: [PATCH] =?UTF-8?q?arkts=E6=8F=92=E4=BB=B6=E6=96=B0=E5=A2=9Ecpu=20?= =?UTF-8?q?profiler=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: jichuan --- OAT.xml | 1 + device/BUILD.gn | 1 + device/ohos_test.xml | 10 + .../arkts_plugin/include/arkts_plugin.h | 7 +- .../plugins/arkts_plugin/src/arkts_plugin.cpp | 152 ++++++++++++--- device/plugins/arkts_plugin/test/BUILD.gn | 55 ++++++ .../test/resources/entry-default-signed.hap | Bin 0 -> 5028076 bytes .../test/unittest/arkts_plugin_unittest.cpp | 177 ++++++++++++++++++ .../arkts_plugin/arkts_plugin_config.proto | 8 + 9 files changed, 378 insertions(+), 33 deletions(-) create mode 100755 device/plugins/arkts_plugin/test/BUILD.gn create mode 100755 device/plugins/arkts_plugin/test/resources/entry-default-signed.hap create mode 100755 device/plugins/arkts_plugin/test/unittest/arkts_plugin_unittest.cpp diff --git a/OAT.xml b/OAT.xml index 6e0e7ee91..e596165d7 100644 --- a/OAT.xml +++ b/OAT.xml @@ -124,6 +124,7 @@ Note:If the text contains special characters, please escape them according to th + diff --git a/device/BUILD.gn b/device/BUILD.gn index 851fc4a06..43583e7a2 100644 --- a/device/BUILD.gn +++ b/device/BUILD.gn @@ -58,6 +58,7 @@ group("unittest") { "base/test:unittest", "cmds/test:unittest", "plugins/api/test:unittest", + "plugins/arkts_plugin/test:unittest", "plugins/cpu_plugin/test:unittest", "plugins/diskio_plugin/test:unittest", "plugins/ftrace_plugin/test:unittest", diff --git a/device/ohos_test.xml b/device/ohos_test.xml index f6622f79a..5ca14fba4 100644 --- a/device/ohos_test.xml +++ b/device/ohos_test.xml @@ -153,4 +153,14 @@