diff --git a/services/samgr/native/source/system_ability_manager.cpp b/services/samgr/native/source/system_ability_manager.cpp index ee7c6da5d6d9508a5051f8193aeb0967b6b715cf..77cc3cac24343cc8c6bfdc75cee86ec80c7945ac 100644 --- a/services/samgr/native/source/system_ability_manager.cpp +++ b/services/samgr/native/source/system_ability_manager.cpp @@ -1001,15 +1001,18 @@ void SystemAbilityManager::DoLoadRemoteSystemAbility(int32_t systemAbilityId, in sptr SystemAbilityManager::DoMakeRemoteBinder(int32_t systemAbilityId, int32_t callingPid, int32_t callingUid, const std::string& deviceId) { - HILOGI("MakeRemoteBinder begin, said : %{public}d", systemAbilityId); + HILOGI("[PerformanceTest] MakeRemoteBinder begin, said : %{public}d", systemAbilityId); sptr remoteBinder = nullptr; + int64_t begin = GetTickCount(); if (dBinderService_ != nullptr) { string strName = to_string(systemAbilityId); remoteBinder = dBinderService_->MakeRemoteBinder(Str8ToStr16(strName), deviceId, systemAbilityId, callingPid, callingUid); } - HILOGI("MakeRemoteBinder end, result %{public}s, said : %{public}d, deviceId : %{public}s", - remoteBinder == nullptr ? " failed" : "succeed", systemAbilityId, AnonymizeDeviceId(deviceId).c_str()); + HILOGI("[PerformanceTest] MakeRemoteBinder end, spend %{public}" PRId64 + " ms, result %{public}s, said : %{public}d, deviceId : %{public}s", + GetTickCount() - begin, remoteBinder == nullptr ? " failed" : "succeed", + systemAbilityId, AnonymizeDeviceId(deviceId).c_str()); return remoteBinder; }