Projects
Eulaceura:Factory
systemabilitymgr_safwk
_service:obs_scm:0000-remove-dependency-on-hitr...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:0000-remove-dependency-on-hitrace-safwk.patch of Package systemabilitymgr_safwk
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
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2