mirror of
https://gitee.com/openharmony/developtools_profiler
synced 2024-11-23 06:50:12 +00:00
部件名称整改
Signed-off-by: wenlong_12 <wenlong12@huawei.com> Signed-off-by: wenlong_12 <wenlong12@huawei.com>
This commit is contained in:
parent
5f9edf7ae2
commit
583b8f5d22
@ -19,8 +19,8 @@ OHOS_PROFILER_3RDPARTY_GOOGLETEST_DIR =
|
||||
"${OHOS_PROFILER_3RDPARTY_DIR}/googletest"
|
||||
|
||||
OHOS_PROFILER_SUBSYS_NAME = "developtools"
|
||||
OHOS_PROFILER_PART_NAME = "profiler"
|
||||
OHOS_PROFILER_TEST_MODULE_OUTPUT_PATH = "profiler"
|
||||
OHOS_PROFILER_PART_NAME = "hiprofiler"
|
||||
OHOS_PROFILER_TEST_MODULE_OUTPUT_PATH = "hiprofiler"
|
||||
|
||||
build_l2 = false
|
||||
if (getenv("BUILD_L2") == "true") {
|
||||
@ -28,5 +28,5 @@ if (getenv("BUILD_L2") == "true") {
|
||||
}
|
||||
|
||||
declare_args() {
|
||||
profiler_SmartPerf = true
|
||||
hiprofiler_SmartPerf = true
|
||||
}
|
||||
|
@ -19,10 +19,10 @@ PROJECT_TOP=$(realpath $THIS_DIR/../../..)
|
||||
|
||||
OHOS_X64_OUT=$PROJECT_TOP/$2/
|
||||
LIBCXX_X64_OUT=$PROJECT_TOP/$1/ndk/libcxx/linux_x86_64
|
||||
SUBSYS_X64_OUT=$PROJECT_TOP/$2/developtools/profiler
|
||||
PROTOC=$PROJECT_TOP/$2/developtools/profiler/protoc
|
||||
OPT_PLUGIN_PATH=$PROJECT_TOP/$2/developtools/profiler/protoencoder_plugin
|
||||
OPT_PLUGIN=--plugin=protoc-gen-opt=$PROJECT_TOP/$2/developtools/profiler/protoencoder_plugin
|
||||
SUBSYS_X64_OUT=$PROJECT_TOP/$2/developtools/hiprofiler
|
||||
PROTOC=$PROJECT_TOP/$2/thirdparty/protobuf/protoc
|
||||
OPT_PLUGIN_PATH=$PROJECT_TOP/$2/developtools/hiprofiler/protoencoder_plugin
|
||||
OPT_PLUGIN=--plugin=protoc-gen-opt=$PROJECT_TOP/$2/developtools/hiprofiler/protoencoder_plugin
|
||||
OPT_OUT=--opt_out
|
||||
PYTHON_SHELL=$THIS_DIR/make_standard_proto.py # shell path
|
||||
TMP=$2
|
||||
|
14
bundle.json
14
bundle.json
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@ohos/profiler",
|
||||
"name": "@ohos/hiprofiler",
|
||||
"description": "Performance profiler that provides an analytics tool for the memory, bytrace plug-in, and IDE, as well as plug-in capabilities",
|
||||
"version": "3.09",
|
||||
"license": "Apache License 2.0",
|
||||
@ -10,10 +10,10 @@
|
||||
"dirs": {},
|
||||
"scripts": {},
|
||||
"component": {
|
||||
"name": "profiler",
|
||||
"name": "hiprofiler",
|
||||
"subsystem": "developtools",
|
||||
"features": [
|
||||
"profiler_SmartPerf"
|
||||
"hiprofiler_SmartPerf"
|
||||
],
|
||||
"syscap": [
|
||||
"SystemCapability.HiviewDFX.HiProfiler.HiDebug"
|
||||
@ -40,7 +40,10 @@
|
||||
"napi",
|
||||
"samgr",
|
||||
"c_utils",
|
||||
"faultloggerd"
|
||||
"faultloggerd",
|
||||
"common_event_service",
|
||||
"safwk",
|
||||
"selinux"
|
||||
],
|
||||
"third_party": [
|
||||
"googletest",
|
||||
@ -50,7 +53,8 @@
|
||||
"protobuf",
|
||||
"openssl",
|
||||
"libbpf",
|
||||
"grpc"
|
||||
"grpc",
|
||||
"thirdparty_selinux"
|
||||
]
|
||||
},
|
||||
"build": {
|
||||
|
3
device/base/BUILD.gn
Executable file → Normal file
3
device/base/BUILD.gn
Executable file → Normal file
@ -55,7 +55,8 @@ config("hiprofiler_base_config") {
|
||||
}
|
||||
|
||||
ohos_source_set("hiprofiler_base") {
|
||||
part_name = "profiler"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
sources = [
|
||||
"src/common.cpp",
|
||||
"src/epoll_event_poller.cpp",
|
||||
|
@ -16,7 +16,8 @@ import("../base/config.gni")
|
||||
import("../plugins/ftrace_plugin/ftrace.gni")
|
||||
|
||||
ohos_source_set("command_line") {
|
||||
part_name = "profiler"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
sources = [
|
||||
"src/command_line.cpp",
|
||||
"src/command_param.cpp",
|
||||
|
@ -25,7 +25,7 @@
|
||||
<option name="push" value="plugins/memory_plugin/test/utresources/proc/cmdline -> /data/local/tmp/utresources/proc/" src="res"/>
|
||||
<option name="push" value="plugins/memory_plugin/test/utresources/proc/meminfo -> /data/local/tmp/utresources/proc/" src="res"/>
|
||||
<option name="push" value="plugins/memory_plugin/test/utresources/proc/vmstat -> /data/local/tmp/utresources/proc/" src="res"/>
|
||||
<option name="push" value="developtools/profiler/memorytest -> /data/local/tmp/" src="out"/>
|
||||
<option name="push" value="developtools/hiprofiler/memorytest -> /data/local/tmp/" src="out"/>
|
||||
</preparer>
|
||||
</target>
|
||||
<target name="smaps_stats_ut">
|
||||
@ -62,13 +62,13 @@
|
||||
<option name="push" value="plugins/cpu_plugin/test/resources/sys/devices/system/cpu/cpu5/cpufreq/cpuinfo_cur_freq -> /data/local/tmp/resources/sys/devices/system/cpu/cpu5/cpufreq" src="res"/>
|
||||
<option name="push" value="plugins/cpu_plugin/test/resources/sys/devices/system/cpu/cpu5/cpufreq/cpuinfo_max_freq -> /data/local/tmp/resources/sys/devices/system/cpu/cpu5/cpufreq" src="res"/>
|
||||
<option name="push" value="plugins/cpu_plugin/test/resources/sys/devices/system/cpu/cpu5/cpufreq/cpuinfo_min_freq -> /data/local/tmp/resources/sys/devices/system/cpu/cpu5/cpufreq" src="res"/>
|
||||
<option name="push" value="developtools/profiler/cpudataplugintest -> /data/local/tmp/" src="out"/>
|
||||
<option name="push" value="developtools/hiprofiler/cpudataplugintest -> /data/local/tmp/" src="out"/>
|
||||
</preparer>
|
||||
</target>
|
||||
<target name="diskiodataplugin_ut">
|
||||
<preparer>
|
||||
<option name="push" value="plugins/diskio_plugin/test/resources/proc/vmstat -> /data/local/tmp/resources/proc/" src="res"/>
|
||||
<option name="push" value="developtools/profiler/diskiodataplugintest -> /data/local/tmp/" src="out"/>
|
||||
<option name="push" value="developtools/hiprofiler/diskiodataplugintest -> /data/local/tmp/" src="out"/>
|
||||
</preparer>
|
||||
</target>
|
||||
<target name="networkplugin_ut">
|
||||
|
@ -30,7 +30,8 @@ config("hiprofiler_plugins_config") {
|
||||
}
|
||||
|
||||
ohos_source_set("plugins_sources") {
|
||||
part_name = "profiler"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
include_dirs = [
|
||||
"./include",
|
||||
"../../base/include/",
|
||||
|
@ -15,7 +15,8 @@ import("//build/ohos.gni")
|
||||
import("../../base/config.gni")
|
||||
|
||||
ohos_source_set("cpudataplugin_source") {
|
||||
part_name = "profiler"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
sources = [
|
||||
"../memory_plugin/src/buffer_splitter.cpp",
|
||||
"src/cpu_data_plugin.cpp",
|
||||
|
@ -15,7 +15,8 @@ import("//build/ohos.gni")
|
||||
import("../../base/config.gni")
|
||||
|
||||
ohos_source_set("diskiodataplugin_source") {
|
||||
part_name = "profiler"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
sources = [
|
||||
"../memory_plugin/src/buffer_splitter.cpp",
|
||||
"src/diskio_data_plugin.cpp",
|
||||
|
@ -15,7 +15,6 @@ import("//build/ohos.gni")
|
||||
import("../../base/config.gni")
|
||||
|
||||
ohos_source_set("hiebpfplugin_source") {
|
||||
part_name = "profiler"
|
||||
sources = [ "src/hiebpf_module.cpp" ]
|
||||
include_dirs = [
|
||||
"include",
|
||||
|
@ -15,7 +15,8 @@ import("//build/ohos.gni")
|
||||
import("../../base/config.gni")
|
||||
|
||||
ohos_source_set("hilogplugin_source") {
|
||||
part_name = "profiler"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
sources = [
|
||||
"src/file_cache.cpp",
|
||||
"src/hilog_module.cpp",
|
||||
|
@ -15,7 +15,8 @@ import("//build/ohos.gni")
|
||||
import("../../base/config.gni")
|
||||
|
||||
ohos_source_set("hisyseventplugin_source") {
|
||||
part_name = "profiler"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
sources = [
|
||||
"src/hisysevent_module.cpp",
|
||||
"src/hisysevent_plugin.cpp",
|
||||
|
@ -15,7 +15,8 @@ import("//build/ohos.gni")
|
||||
import("../../base/config.gni")
|
||||
|
||||
ohos_source_set("memdataplugin_source") {
|
||||
part_name = "profiler"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
sources = [
|
||||
"src/buffer_splitter.cpp",
|
||||
"src/memory_data_plugin.cpp",
|
||||
|
@ -79,6 +79,7 @@ ohos_executable("native_daemon") {
|
||||
"${OHOS_PROFILER_DIR}/protos/services:plugin_service_proto",
|
||||
"${OHOS_PROFILER_DIR}/protos/services:profiler_service_all_type_source",
|
||||
"${OHOS_PROFILER_DIR}/protos/types/plugins/native_hook:native_hook_cpp",
|
||||
"../../../../../base/hiviewdfx/faultloggerd/interfaces/innerkits/callstack:callstack_nativedaemon"
|
||||
"../../base:hiprofiler_base",
|
||||
"//third_party/bounds_checking_function:libsec_static",
|
||||
"//third_party/zlib:libz",
|
||||
@ -88,20 +89,13 @@ ohos_executable("native_daemon") {
|
||||
":hook_config",
|
||||
"${OHOS_PROFILER_DIR}/device/base:hiprofiler_test_config",
|
||||
]
|
||||
external_deps = [
|
||||
"init:libbegetutil",
|
||||
"faultloggerd:callstack_nativedaemon",
|
||||
]
|
||||
external_deps = [ "init:libbegetutil" ]
|
||||
if (current_toolchain != host_toolchain) {
|
||||
defines = [ "HAVE_HILOG" ]
|
||||
if (build_l2) {
|
||||
external_deps += [
|
||||
"shared_library:libhilog",
|
||||
]
|
||||
external_deps += [ "shared_library:libhilog" ]
|
||||
} else {
|
||||
external_deps += [
|
||||
"hiviewdfx_hilog_native:libhilog",
|
||||
]
|
||||
external_deps += [ "hiviewdfx_hilog_native:libhilog" ]
|
||||
}
|
||||
}
|
||||
use_exceptions = true
|
||||
|
@ -58,15 +58,13 @@ ohos_source_set("native_hook_source") {
|
||||
]
|
||||
deps = [
|
||||
"${OHOS_PROFILER_DIR}/device/services/shared_memory:shared_memory_lite",
|
||||
"../../../../../base/hiviewdfx/faultloggerd/interfaces/innerkits/callstack:callstack_nativedaemon",
|
||||
"../../base:hiprofiler_base",
|
||||
"//third_party/bounds_checking_function:libsec_static",
|
||||
"//third_party/zlib:libz",
|
||||
]
|
||||
external_deps = [
|
||||
"init:libbegetutil",
|
||||
"faultloggerd:callstack_nativedaemon",
|
||||
]
|
||||
|
||||
external_deps = [ "init:libbegetutil" ]
|
||||
|
||||
if (current_toolchain != host_toolchain) {
|
||||
defines = [ "HAVE_HILOG" ]
|
||||
if (build_l2) {
|
||||
|
@ -15,7 +15,8 @@ import("//build/ohos.gni")
|
||||
import("../../base/config.gni")
|
||||
|
||||
ohos_source_set("networkplugin_source") {
|
||||
part_name = "profiler"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
sources = [
|
||||
"../memory_plugin/src/buffer_splitter.cpp",
|
||||
"src/network_module.cpp",
|
||||
|
@ -15,7 +15,8 @@ import("//build/ohos.gni")
|
||||
import("../../base/config.gni")
|
||||
|
||||
ohos_source_set("ipc") {
|
||||
part_name = "profiler"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
sources = [
|
||||
"src/client_connection.cpp",
|
||||
"src/client_map.cpp",
|
||||
@ -41,8 +42,8 @@ ohos_source_set("ipc") {
|
||||
}
|
||||
}
|
||||
deps = [
|
||||
"${OHOS_PROFILER_3RDPARTY_PROTOBUF_DIR}:protobuf",
|
||||
"${OHOS_PROFILER_3RDPARTY_PROTOBUF_DIR}:protobuf_lite",
|
||||
"${OHOS_PROFILER_3RDPARTY_PROTOBUF_DIR}:protobuf_lite_static",
|
||||
"${OHOS_PROFILER_3RDPARTY_PROTOBUF_DIR}:protobuf_static",
|
||||
"//third_party/bounds_checking_function:libsec_static",
|
||||
]
|
||||
public_configs = [ "${OHOS_PROFILER_DIR}/device/base:hiprofiler_test_config" ]
|
||||
@ -61,9 +62,9 @@ ohos_executable("protoc_gen_ipc") {
|
||||
]
|
||||
public_configs = [ "${OHOS_PROFILER_DIR}/device/base:hiprofiler_test_config" ]
|
||||
deps = [
|
||||
"${OHOS_PROFILER_3RDPARTY_PROTOBUF_DIR}:protobuf",
|
||||
"${OHOS_PROFILER_3RDPARTY_PROTOBUF_DIR}:protobuf_lite",
|
||||
"${OHOS_PROFILER_3RDPARTY_PROTOBUF_DIR}:protoc_lib(${host_toolchain})",
|
||||
"${OHOS_PROFILER_3RDPARTY_PROTOBUF_DIR}:protobuf_lite_static",
|
||||
"${OHOS_PROFILER_3RDPARTY_PROTOBUF_DIR}:protobuf_static",
|
||||
"${OHOS_PROFILER_3RDPARTY_PROTOBUF_DIR}:protoc_static_lib(${host_toolchain})",
|
||||
]
|
||||
install_enable = false
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
@ -82,9 +83,9 @@ ohos_executable("protoencoder_plugin") {
|
||||
]
|
||||
public_configs = [ "${OHOS_PROFILER_DIR}/device/base:hiprofiler_test_config" ]
|
||||
deps = [
|
||||
"${OHOS_PROFILER_3RDPARTY_PROTOBUF_DIR}:protobuf",
|
||||
"${OHOS_PROFILER_3RDPARTY_PROTOBUF_DIR}:protobuf_lite",
|
||||
"${OHOS_PROFILER_3RDPARTY_PROTOBUF_DIR}:protoc_lib(${host_toolchain})",
|
||||
"${OHOS_PROFILER_3RDPARTY_PROTOBUF_DIR}:protobuf_lite_static",
|
||||
"${OHOS_PROFILER_3RDPARTY_PROTOBUF_DIR}:protobuf_static",
|
||||
"${OHOS_PROFILER_3RDPARTY_PROTOBUF_DIR}:protoc_static_lib(${host_toolchain})",
|
||||
]
|
||||
install_enable = false
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
|
@ -15,7 +15,8 @@ import("//build/ohos.gni")
|
||||
import("../../base/config.gni")
|
||||
|
||||
ohos_source_set("hiprofiler_plugin_service") {
|
||||
part_name = "profiler"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
public_deps = [
|
||||
"${OHOS_PROFILER_DIR}/device/services/profiler_service:profiler_service",
|
||||
"${OHOS_PROFILER_DIR}/device/services/shared_memory:shared_memory",
|
||||
|
@ -31,7 +31,8 @@ config("profiler_service_config") {
|
||||
}
|
||||
|
||||
ohos_source_set("profiler_service") {
|
||||
part_name = "profiler"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
sources = [
|
||||
"src/profiler_capability_manager.cpp",
|
||||
"src/profiler_data_repeater.cpp",
|
||||
|
@ -91,6 +91,6 @@ ohos_static_library("shared_memory_lite") {
|
||||
}
|
||||
}
|
||||
|
||||
subsystem_name = "developtools"
|
||||
part_name = "profiler"
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
}
|
||||
|
@ -15,7 +15,8 @@ import("//build/ohos.gni")
|
||||
import("//developtools/profiler/hidebug/hidebug.gni")
|
||||
|
||||
ohos_source_set("libhidebug_source") {
|
||||
part_name = "profiler"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
include_dirs = [
|
||||
"//commonlibrary/c_utils/base/include",
|
||||
"//developtools/profiler/hidebug/interfaces/native/innerkits/include",
|
||||
@ -31,8 +32,8 @@ ohos_source_set("libhidebug_source") {
|
||||
}
|
||||
|
||||
ohos_source_set("libhidebug_init_source") {
|
||||
part_name = "profiler"
|
||||
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
defines = [ "HIDEBUG_IN_INIT" ]
|
||||
|
||||
include_dirs = [
|
||||
@ -41,10 +42,7 @@ ohos_source_set("libhidebug_init_source") {
|
||||
]
|
||||
sources = [ "hidebug_base.c" ]
|
||||
deps = [
|
||||
"//base/startup/init/services/param/base:parameterbase_ext",
|
||||
"//third_party/bounds_checking_function:libsec_static",
|
||||
#"//base/startup/init/services/param/base:parameterbase_ext",
|
||||
]
|
||||
external_deps = [
|
||||
"init:parameterbase_ext",
|
||||
]
|
||||
}
|
||||
|
@ -13,3 +13,5 @@
|
||||
|
||||
# hidebug path definitions
|
||||
hidebug_path = "//developtools/profiler/hidebug"
|
||||
OHOS_PROFILER_SUBSYS_NAME = "developtools"
|
||||
OHOS_PROFILER_PART_NAME = "hiprofiler"
|
||||
|
@ -36,19 +36,19 @@ ohos_shared_library("hidebug") {
|
||||
external_deps = [
|
||||
"ability_base:configuration",
|
||||
"ability_base:want",
|
||||
"ability_runtime:app_context",
|
||||
"bundle_framework:appexecfwk_base",
|
||||
"bundle_framework:appexecfwk_core",
|
||||
"c_utils:utils",
|
||||
"hidumper:lib_dump_usage",
|
||||
"hilog_native:libhilog",
|
||||
"ipc:ipc_core",
|
||||
"samgr:samgr_proxy",
|
||||
"hidumper:lib_dump_usage",
|
||||
"ability_runtime:app_context",
|
||||
"napi:ace_napi",
|
||||
"samgr:samgr_proxy",
|
||||
]
|
||||
|
||||
relative_install_dir = "module"
|
||||
|
||||
part_name = "profiler"
|
||||
part_name = "hiprofiler"
|
||||
subsystem_name = "developtools"
|
||||
}
|
||||
|
@ -37,8 +37,8 @@ ohos_shared_library("libhidebug") {
|
||||
|
||||
output_extension = "so"
|
||||
|
||||
part_name = "profiler"
|
||||
subsystem_name = "developtools"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
}
|
||||
|
||||
ohos_static_library("libhidebug_init") {
|
||||
@ -50,6 +50,6 @@ ohos_static_library("libhidebug_init") {
|
||||
|
||||
external_deps = [ "init:libinit_module_engine" ]
|
||||
|
||||
part_name = "profiler"
|
||||
subsystem_name = "developtools"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
}
|
||||
|
@ -79,8 +79,8 @@ ohos_source_set("hiebpf.bpf") {
|
||||
":common_config",
|
||||
":kern_common_config",
|
||||
]
|
||||
subsystem_name = "developtools"
|
||||
part_name = "profiler"
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
output_name = "hiebpf.bpf.o"
|
||||
}
|
||||
|
||||
@ -129,7 +129,8 @@ ohos_source_set("hiebpf_source_common") {
|
||||
"//third_party/bounds_checking_function:libsec_static",
|
||||
"//third_party/libbpf:libbpf",
|
||||
]
|
||||
part_name = "profiler"
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
}
|
||||
|
||||
ohos_executable("hiebpf") {
|
||||
@ -137,8 +138,8 @@ ohos_executable("hiebpf") {
|
||||
|
||||
deps = [ ":hiebpf_source_common" ]
|
||||
|
||||
subsystem_name = "developtools"
|
||||
part_name = "profiler"
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
output_name = "hiebpf"
|
||||
}
|
||||
|
||||
|
@ -16,7 +16,7 @@ import("../../../build/config.gni")
|
||||
|
||||
group("SmartPerf") {
|
||||
deps = []
|
||||
if (support_jsapi && profiler_SmartPerf) {
|
||||
if (support_jsapi && hiprofiler_SmartPerf) {
|
||||
deps +=
|
||||
[ "//developtools/profiler/host/smartperf/client/client_ui/:SmartPerf" ]
|
||||
}
|
||||
|
4
proto_encoder/test/BUILD.gn
Executable file → Normal file
4
proto_encoder/test/BUILD.gn
Executable file → Normal file
@ -62,8 +62,8 @@ ohos_source_set("proto_example_source") {
|
||||
include_dirs = [ "$proto_out_dir" ]
|
||||
sources = example_codegen_all
|
||||
public_deps = [
|
||||
"${OHOS_PROFILER_3RDPARTY_PROTOBUF_DIR}:protobuf",
|
||||
"${OHOS_PROFILER_3RDPARTY_PROTOBUF_DIR}:protobuf_lite",
|
||||
"${OHOS_PROFILER_3RDPARTY_PROTOBUF_DIR}:protobuf_lite_static",
|
||||
"${OHOS_PROFILER_3RDPARTY_PROTOBUF_DIR}:protobuf_static",
|
||||
]
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
|
@ -15,7 +15,8 @@ import("../build/config.gni")
|
||||
|
||||
subsys_name = OHOS_PROFILER_SUBSYS_NAME
|
||||
part_name = OHOS_PROFILER_PART_NAME
|
||||
subsys_x64_out = "clang_x64/$subsys_name/$part_name"
|
||||
subsys_x64_out = "clang_x64/thirdparty/grpc"
|
||||
proto_gen_ipc_dir = "clang_x64/$subsys_name/$part_name"
|
||||
libc_dir_proto = rebase_path("$asdk_libs_dir", "//")
|
||||
root_output_dir_proto = rebase_path("$root_out_dir", "//")
|
||||
|
||||
|
@ -19,7 +19,7 @@ proto_out_dir = "$root_gen_dir/cpp/" + rebase_path(".", "//")
|
||||
proto_rel_out_dir = rebase_path(proto_out_dir, root_build_dir)
|
||||
|
||||
grpc_cpp_plugin = "$subsys_x64_out/grpc_cpp_plugin"
|
||||
ipc_cpp_plugin = "$subsys_x64_out/protoc_gen_ipc"
|
||||
ipc_cpp_plugin = "$proto_gen_ipc_dir/protoc_gen_ipc"
|
||||
|
||||
config("public_configs") {
|
||||
include_dirs = [ "$proto_out_dir" ]
|
||||
@ -85,6 +85,8 @@ ohos_source_set("profiler_service_type_source") {
|
||||
include_dirs = [ "$proto_out_dir" ]
|
||||
public_configs = [ ":public_configs" ]
|
||||
sources = profiler_service_type_codegen
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
}
|
||||
|
||||
ohos_source_set("profiler_service_all_type_source") {
|
||||
@ -96,6 +98,8 @@ ohos_source_set("profiler_service_all_type_source") {
|
||||
include_dirs = [ "$proto_out_dir" ]
|
||||
public_configs = [ ":public_configs" ]
|
||||
sources = all_type_codegen
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
}
|
||||
|
||||
########################################################
|
||||
@ -150,6 +154,8 @@ ohos_source_set("profiler_service_proto") {
|
||||
include_dirs = [ "$proto_out_dir" ]
|
||||
public_configs = [ ":public_configs" ]
|
||||
sources = profiler_service_interface_codegen
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
}
|
||||
|
||||
########################################################
|
||||
@ -221,6 +227,8 @@ ohos_source_set("plugin_service_proto") {
|
||||
]
|
||||
public_configs = [ ":public_configs" ]
|
||||
sources = plugin_service_interface_codegen
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
}
|
||||
|
||||
#######################################################
|
||||
@ -230,4 +238,6 @@ ohos_source_set("proto_services_cpp") {
|
||||
":profiler_service_all_type_source",
|
||||
":profiler_service_proto",
|
||||
]
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
}
|
||||
|
@ -75,4 +75,6 @@ ohos_source_set("agent_data_cpp") {
|
||||
include_dirs = [ "$proto_out_dir" ]
|
||||
public_configs = [ ":agent_include_config" ]
|
||||
sources = agent_data_codegen
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
}
|
||||
|
@ -68,6 +68,8 @@ ohos_source_set("bytrace_plugin_protos_cpp") {
|
||||
include_dirs = [ "$proto_out_dir" ]
|
||||
public_configs = [ ":bytrace_plugin_protos_config" ]
|
||||
sources = bytrace_plugin_protos_codegen
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
}
|
||||
|
||||
ohos_source_set("bytrace_plugin_protos_cpp_standard") {
|
||||
@ -79,4 +81,6 @@ ohos_source_set("bytrace_plugin_protos_cpp_standard") {
|
||||
include_dirs = [ "$proto_out_dir" ]
|
||||
public_configs = [ ":bytrace_plugin_protos_config" ]
|
||||
sources = bytrace_plugin_protos_codegen_standard
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
}
|
||||
|
@ -81,6 +81,8 @@ ohos_source_set("cpu_data_cpp") {
|
||||
include_dirs = [ "$proto_out_dir" ]
|
||||
public_configs = [ ":cpu_include_config" ]
|
||||
sources = cpu_data_codegen
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
}
|
||||
|
||||
ohos_source_set("cpu_data_cpp_standard") {
|
||||
@ -92,6 +94,8 @@ ohos_source_set("cpu_data_cpp_standard") {
|
||||
include_dirs = [ "$proto_out_dir" ]
|
||||
public_configs = [ ":cpu_include_config" ]
|
||||
sources = cpu_data_codegen_standard
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
}
|
||||
|
||||
ohos_source_set("cpu_plugin_config_cpp_standard") {
|
||||
|
@ -81,6 +81,8 @@ ohos_source_set("diskio_data_cpp") {
|
||||
include_dirs = [ "$proto_out_dir" ]
|
||||
public_configs = [ ":diskio_include_config" ]
|
||||
sources = diskio_data_codegen
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
}
|
||||
|
||||
ohos_source_set("diskio_data_cpp_standard") {
|
||||
@ -92,6 +94,8 @@ ohos_source_set("diskio_data_cpp_standard") {
|
||||
include_dirs = [ "$proto_out_dir" ]
|
||||
public_configs = [ ":diskio_include_config" ]
|
||||
sources = diskio_data_codegen_standard
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
}
|
||||
|
||||
ohos_source_set("diskio_plugin_config_cpp_standard") {
|
||||
|
4
protos/types/plugins/ftrace_data/default/BUILD.gn
Executable file → Normal file
4
protos/types/plugins/ftrace_data/default/BUILD.gn
Executable file → Normal file
@ -83,6 +83,8 @@ ohos_source_set("ftrace_data_cpp") {
|
||||
include_dirs = [ "$proto_out_dir" ]
|
||||
public_configs = [ ":public_configs" ]
|
||||
sources = ftrace_data_codegen
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
}
|
||||
|
||||
ohos_source_set("ftrace_data_cpp_standard") {
|
||||
@ -94,6 +96,8 @@ ohos_source_set("ftrace_data_cpp_standard") {
|
||||
include_dirs = [ "$proto_out_dir" ]
|
||||
public_configs = [ ":public_configs" ]
|
||||
sources = ftrace_data_codegen_standard
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
}
|
||||
|
||||
ohos_source_set("ftrace_plugin_config_cpp_standard") {
|
||||
|
4
protos/types/plugins/hidump_data/BUILD.gn
Executable file → Normal file
4
protos/types/plugins/hidump_data/BUILD.gn
Executable file → Normal file
@ -81,6 +81,8 @@ ohos_source_set("hidump_data_cpp") {
|
||||
include_dirs = [ "$proto_out_dir" ]
|
||||
public_configs = [ ":hidump_include_config" ]
|
||||
sources = hidump_data_codegen
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
}
|
||||
|
||||
ohos_source_set("hidump_data_cpp_standard") {
|
||||
@ -92,6 +94,8 @@ ohos_source_set("hidump_data_cpp_standard") {
|
||||
include_dirs = [ "$proto_out_dir" ]
|
||||
public_configs = [ ":hidump_include_config" ]
|
||||
sources = hidump_data_codegen_standard
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
}
|
||||
|
||||
ohos_source_set("hidump_plugin_config_cpp_standard") {
|
||||
|
4
protos/types/plugins/hiebpf_data/BUILD.gn
Executable file → Normal file
4
protos/types/plugins/hiebpf_data/BUILD.gn
Executable file → Normal file
@ -70,6 +70,8 @@ ohos_source_set("hiebpf_data_cpp") {
|
||||
include_dirs = [ "$proto_out_dir" ]
|
||||
public_configs = [ ":hiebpf_include_config" ]
|
||||
sources = hiebpf_data_codegen
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
}
|
||||
|
||||
ohos_source_set("hiebpf_data_cpp_standard") {
|
||||
@ -81,4 +83,6 @@ ohos_source_set("hiebpf_data_cpp_standard") {
|
||||
include_dirs = [ "$proto_out_dir" ]
|
||||
public_configs = [ ":hiebpf_include_config" ]
|
||||
sources = hiebpf_data_codegen_standard
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
}
|
||||
|
@ -81,6 +81,8 @@ ohos_source_set("hilog_data_cpp") {
|
||||
include_dirs = [ "$proto_out_dir" ]
|
||||
public_configs = [ ":hilog_include_config" ]
|
||||
sources = hilog_data_codegen
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
}
|
||||
|
||||
ohos_source_set("hilog_data_cpp_standard") {
|
||||
@ -92,6 +94,8 @@ ohos_source_set("hilog_data_cpp_standard") {
|
||||
include_dirs = [ "$proto_out_dir" ]
|
||||
public_configs = [ ":hilog_include_config" ]
|
||||
sources = hilog_data_codegen_standard
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
}
|
||||
|
||||
ohos_source_set("hilog_plugin_config_cpp_standard") {
|
||||
|
4
protos/types/plugins/hiperf_data/BUILD.gn
Executable file → Normal file
4
protos/types/plugins/hiperf_data/BUILD.gn
Executable file → Normal file
@ -68,6 +68,8 @@ ohos_source_set("hiperf_data_cpp") {
|
||||
include_dirs = [ "$proto_out_dir" ]
|
||||
public_configs = [ ":hiperf_data_protos_config" ]
|
||||
sources = hiperf_data_protos_codegen
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
}
|
||||
|
||||
ohos_source_set("hiperf_data_cpp_standard") {
|
||||
@ -79,4 +81,6 @@ ohos_source_set("hiperf_data_cpp_standard") {
|
||||
include_dirs = [ "$proto_out_dir" ]
|
||||
public_configs = [ ":hiperf_data_protos_config" ]
|
||||
sources = hiperf_data_protos_codegen_standard
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
}
|
||||
|
@ -83,6 +83,8 @@ ohos_source_set("hisysevent_data_cpp") {
|
||||
include_dirs = [ "$proto_out_dir" ]
|
||||
public_configs = [ ":hisysevent_include_config" ]
|
||||
sources = hisysevent_data_codegen
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
}
|
||||
|
||||
ohos_source_set("hisysevent_data_cpp_standard") {
|
||||
@ -94,6 +96,8 @@ ohos_source_set("hisysevent_data_cpp_standard") {
|
||||
include_dirs = [ "$proto_out_dir" ]
|
||||
public_configs = [ ":hisysevent_include_config" ]
|
||||
sources = hisysevent_data_codegen_standard
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
}
|
||||
|
||||
ohos_source_set("hisysevent_plugin_config_cpp_standard") {
|
||||
|
@ -85,6 +85,8 @@ ohos_source_set("memory_data_cpp") {
|
||||
include_dirs = [ "$proto_out_dir" ]
|
||||
public_configs = [ ":memory_include_config" ]
|
||||
sources = memory_data_codegen
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
}
|
||||
|
||||
ohos_source_set("memory_data_cpp_standard") {
|
||||
@ -96,6 +98,8 @@ ohos_source_set("memory_data_cpp_standard") {
|
||||
include_dirs = [ "$proto_out_dir" ]
|
||||
public_configs = [ ":memory_include_config" ]
|
||||
sources = memory_data_codegen_standard
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
}
|
||||
|
||||
ohos_source_set("memory_plugin_config_cpp_standard") {
|
||||
|
@ -81,6 +81,8 @@ ohos_source_set("native_hook_cpp") {
|
||||
include_dirs = [ "$proto_out_dir" ]
|
||||
public_configs = [ ":native_hook_include_config" ]
|
||||
sources = native_hook_codegen
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
}
|
||||
|
||||
ohos_source_set("native_hook_cpp_standard") {
|
||||
@ -92,6 +94,8 @@ ohos_source_set("native_hook_cpp_standard") {
|
||||
include_dirs = [ "$proto_out_dir" ]
|
||||
public_configs = [ ":native_hook_include_config" ]
|
||||
sources = native_hook_codegen_standard
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
}
|
||||
|
||||
ohos_source_set("native_hook_plugin_config_cpp_standard") {
|
||||
|
@ -81,6 +81,8 @@ ohos_source_set("network_data_cpp") {
|
||||
include_dirs = [ "$proto_out_dir" ]
|
||||
public_configs = [ ":network_include_config" ]
|
||||
sources = network_data_codegen
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
}
|
||||
|
||||
ohos_source_set("network_data_cpp_standard") {
|
||||
@ -92,6 +94,8 @@ ohos_source_set("network_data_cpp_standard") {
|
||||
include_dirs = [ "$proto_out_dir" ]
|
||||
public_configs = [ ":network_include_config" ]
|
||||
sources = network_data_codegen_standard
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
}
|
||||
|
||||
ohos_source_set("network_plugin_config_cpp_standard") {
|
||||
|
@ -81,6 +81,8 @@ ohos_source_set("process_data_cpp") {
|
||||
include_dirs = [ "$proto_out_dir" ]
|
||||
public_configs = [ ":process_include_config" ]
|
||||
sources = process_data_codegen
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
}
|
||||
|
||||
ohos_source_set("process_data_cpp_standard") {
|
||||
@ -92,6 +94,8 @@ ohos_source_set("process_data_cpp_standard") {
|
||||
include_dirs = [ "$proto_out_dir" ]
|
||||
public_configs = [ ":process_include_config" ]
|
||||
sources = process_data_codegen_standard
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
}
|
||||
|
||||
ohos_source_set("process_plugin_config_cpp_standard") {
|
||||
|
@ -71,4 +71,6 @@ ohos_source_set("sample_data_cpp") {
|
||||
include_dirs = [ "$proto_out_dir" ]
|
||||
public_configs = [ ":sample_include_config" ]
|
||||
sources = sample_data_codegen
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
}
|
||||
|
@ -71,4 +71,6 @@ ohos_source_set("stream_data_cpp") {
|
||||
include_dirs = [ "$proto_out_dir" ]
|
||||
public_configs = [ ":stream_include_config" ]
|
||||
sources = stream_data_codegen
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
}
|
||||
|
@ -25,8 +25,8 @@ ohos_executable("timestamps") {
|
||||
install_images = [ "system" ]
|
||||
|
||||
install_enable = true
|
||||
subsystem_name = "developtools"
|
||||
part_name = "profiler"
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
}
|
||||
|
||||
group("timestamps_tool") {
|
||||
|
@ -48,8 +48,8 @@ ohos_executable("transitto") {
|
||||
install_images = [ "system" ]
|
||||
|
||||
install_enable = true
|
||||
subsystem_name = "developtools"
|
||||
part_name = "profiler"
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
}
|
||||
|
||||
ohos_executable("transitto_test") {
|
||||
@ -63,8 +63,8 @@ ohos_executable("transitto_test") {
|
||||
|
||||
deps = []
|
||||
|
||||
subsystem_name = "developtools"
|
||||
part_name = "profiler"
|
||||
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
|
||||
part_name = "${OHOS_PROFILER_PART_NAME}"
|
||||
}
|
||||
|
||||
group("transitto_tool") {
|
||||
|
Loading…
Reference in New Issue
Block a user