From 05c27d5866ce03ab2c6243d4f3790ff64b8e61aa Mon Sep 17 00:00:00 2001 From: wangdongdong Date: Wed, 27 Jul 2022 17:26:39 +0800 Subject: [PATCH] Signed-off-by: wangdongdong Change-Id: Ibc7daf67d4554088b3cfa3756b593ca8af3e5db2 --- services/samgr/native/source/system_ability_manager.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/services/samgr/native/source/system_ability_manager.cpp b/services/samgr/native/source/system_ability_manager.cpp index 8b8fa629..32d06747 100644 --- a/services/samgr/native/source/system_ability_manager.cpp +++ b/services/samgr/native/source/system_ability_manager.cpp @@ -198,15 +198,17 @@ sptr SystemAbilityManager::CheckSystemAbility(int32_t systemAbili sptr remoteBinder = nullptr; if (dBinderService_ != nullptr) { string strName = to_string(systemAbilityId); - HILOGI("CheckSystemAbility, MakeRemoteBinder begin, systemAbilityId is %{public}d, deviceId is %s", + HILOGI("[PerformanceTest] CheckSystemAbility, MakeRemoteBinder begin, systemAbilityId is %{public}d, deviceId is %s", systemAbilityId, deviceId.c_str()); + int64_t begin = GetTickCount(); remoteBinder = dBinderService_->MakeRemoteBinder(Str8ToStr16(strName), deviceId, systemAbilityId, 0); if (remoteBinder == nullptr) { HILOGE("MakeRemoteBinder error, remoteBinder is null, systemAbilityId is %{public}d, deviceId is %s", systemAbilityId, deviceId.c_str()); } else { - HILOGI("CheckSystemAbility, MakeRemoteBinder end, systemAbilityId is %{public}d, deviceId is %s", - systemAbilityId, deviceId.c_str()); + HILOGI("[PerformanceTest] CheckSystemAbility, MakeRemoteBinder end, spend %{public}" PRId64 + " ms, systemAbilityId is %{public}d, deviceId is %s", + GetTickCount() - begin, systemAbilityId, deviceId.c_str()); } } return remoteBinder; -- Gitee