diff options
author | CoprDistGit <infra@openeuler.org> | 2024-11-01 07:32:35 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-11-01 07:32:35 +0000 |
commit | 4b26a0134662460b28d5e30b16e395fec7341e32 (patch) | |
tree | 1d737c77d28574f8c30a2f48782692517b2ee9cb /0000-remove-dependency-on-hitrace-safwk.patch | |
parent | d0935aef77f2e579592f4755a8f8b5a6e9656ec7 (diff) |
automatic import of systemabilitymgr_safwkopeneuler24.03_LTS
Diffstat (limited to '0000-remove-dependency-on-hitrace-safwk.patch')
-rw-r--r-- | 0000-remove-dependency-on-hitrace-safwk.patch | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/0000-remove-dependency-on-hitrace-safwk.patch b/0000-remove-dependency-on-hitrace-safwk.patch new file mode 100644 index 0000000..e9d2119 --- /dev/null +++ b/0000-remove-dependency-on-hitrace-safwk.patch @@ -0,0 +1,71 @@ +From e0aace24cbc8d0943bb79589d1a236fb8ff5afdb Mon Sep 17 00:00:00 2001 +From: heppen <hepeng68@huawei.com> +Date: Tue, 20 Jun 2023 17:23:24 +0800 +Subject: [PATCH] remove dependency on hitrace + +--- + interfaces/innerkits/safwk/BUILD.gn | 2 +- + services/safwk/src/local_ability_manager.cpp | 4 ++-- + services/safwk/src/system_ability.cpp | 4 ++-- + 3 files changed, 5 insertions(+), 5 deletions(-) + +diff --git a/interfaces/innerkits/safwk/BUILD.gn b/interfaces/innerkits/safwk/BUILD.gn +index 5509789..3dd18cb 100644 +--- a/interfaces/innerkits/safwk/BUILD.gn ++++ b/interfaces/innerkits/safwk/BUILD.gn +@@ -51,7 +51,7 @@ ohos_shared_library("system_ability_fwk") { + if (is_standard_system) { + external_deps = [ + "c_utils:utils", +- "hitrace_native:hitrace_meter", ++ # "hitrace_native:hitrace_meter", + "hiviewdfx_hilog_native:libhilog", + "ipc:ipc_core", + "samgr:samgr_common", +diff --git a/services/safwk/src/local_ability_manager.cpp b/services/safwk/src/local_ability_manager.cpp +index 11f7a06..0af6af9 100644 +--- a/services/safwk/src/local_ability_manager.cpp ++++ b/services/safwk/src/local_ability_manager.cpp +@@ -22,7 +22,7 @@ + + #include "datetime_ex.h" + #include "errors.h" +-#include "hitrace_meter.h" ++// #include "hitrace_meter.h" + #include "ipc_skeleton.h" + #include "iservice_registry.h" + #include "safwk_log.h" +@@ -88,7 +88,7 @@ void LocalAbilityManager::DoStartSAProcess(const std::string& profilePath, int32 + } + { + std::string traceTag = GetTraceTag(realProfilePath); +- HITRACE_METER_NAME(HITRACE_TAG_SAMGR, traceTag); ++ // HITRACE_METER_NAME(HITRACE_TAG_SAMGR, traceTag); + bool ret = InitSystemAbilityProfiles(realProfilePath, saId); + if (!ret) { + HILOGE(TAG, "InitSystemAbilityProfiles no right profile, will exit"); +diff --git a/services/safwk/src/system_ability.cpp b/services/safwk/src/system_ability.cpp +index 84911e0..e618560 100644 +--- a/services/safwk/src/system_ability.cpp ++++ b/services/safwk/src/system_ability.cpp +@@ -19,7 +19,7 @@ + + #include "datetime_ex.h" + #include "errors.h" +-#include "hitrace_meter.h" ++// #include "hitrace_meter.h" + #include "if_system_ability_manager.h" + #include "iservice_registry.h" + #include "local_ability_manager.h" +@@ -114,7 +114,7 @@ void SystemAbility::Start() + } + HILOGD(TAG, "[PerformanceTest] SAFWK OnStart systemAbilityId:%{public}d", saId_); + int64_t begin = GetTickCount(); +- HITRACE_METER_NAME(HITRACE_TAG_SAMGR, ToString(saId_) + "_OnStart"); ++ // HITRACE_METER_NAME(HITRACE_TAG_SAMGR, ToString(saId_) + "_OnStart"); + OnStart(); + isRunning_ = true; + HILOGI(TAG, "[PerformanceTest] SAFWK OnStart systemAbilityId:%{public}d finished, spend:%{public}" PRId64 " ms", +-- +2.33.0 + |