mirror of
https://gitee.com/openharmony/resourceschedule_background_task_mgr
synced 2024-11-23 06:50:07 +00:00
修改部分日志
Signed-off-by: Zhao-PengFei35 <zhaopengfei35@huawei.com>
This commit is contained in:
parent
fd396958a3
commit
1b6bf9b6d7
@ -102,7 +102,6 @@ bool CheckValidInfo(const EfficiencyResourceInfo ¶ms)
|
||||
|
||||
napi_value ApplyEfficiencyResources(napi_env env, napi_callback_info info)
|
||||
{
|
||||
BGTASK_LOGD("start ApplyEfficiencyResources");
|
||||
EfficiencyResourceInfo params;
|
||||
napi_value result = nullptr;
|
||||
if (ParseParameters(env, info, params) == nullptr || !CheckValidInfo(params)) {
|
||||
|
@ -29,8 +29,6 @@
|
||||
#include "bundle_manager_helper.h"
|
||||
#include "efficiency_resource_log.h"
|
||||
|
||||
#include <chrono>
|
||||
#include <thread>
|
||||
namespace OHOS {
|
||||
namespace BackgroundTaskMgr {
|
||||
namespace {
|
||||
@ -159,9 +157,7 @@ void BgEfficiencyResourcesMgr::HandlePersistenceData()
|
||||
void BgEfficiencyResourcesMgr::EraseRecordIf(ResourceRecordMap &infoMap,
|
||||
const std::function<bool(ResourceRecordPair)> &fun)
|
||||
{
|
||||
BGTASK_LOGI("infoMap.size(): %{public}d ", infoMap.size());
|
||||
for (auto iter = infoMap.begin(); iter != infoMap.end();) {
|
||||
BGTASK_LOGI("key, result %{public}d %{public}d ", iter->first, fun(*iter));
|
||||
if (fun(*iter)) {
|
||||
infoMap.erase(iter++);
|
||||
} else {
|
||||
@ -179,9 +175,6 @@ void BgEfficiencyResourcesMgr::CheckPersistenceData(const std::vector<AppExecFwk
|
||||
runningUid.emplace(iter.uid_);
|
||||
runningPid.emplace(iter.pid_);
|
||||
});
|
||||
BGTASK_LOGI("runningUid.size(): %{public}d ", runningUid.size());
|
||||
BGTASK_LOGI("appResourceApplyMap_.size(): %{public}d ", appResourceApplyMap_.size());
|
||||
BGTASK_LOGI("procResourceApplyMap_.size(): %{public}d ", procResourceApplyMap_.size());
|
||||
auto removeUid = [&runningUid](const auto &iter) { return runningUid.find(iter.first) == runningUid.end(); };
|
||||
EraseRecordIf(appResourceApplyMap_, removeUid);
|
||||
auto removePid = [&runningPid](const auto &iter) { return runningPid.find(iter.first) == runningPid.end(); };
|
||||
|
Loading…
Reference in New Issue
Block a user