_W("[Loader %d(%s)] Memory monitor", getpid(), loader_name.c_str());
- uint64_t total_pss = 0;
+ uint32_t total_pss = 0;
std::string line;
std::string libinfo;
while (std::getline(file, line)) {
libinfo = area + " " + perm + " " + filename;
} else if (tag == "Pss:") {
- uint64_t pss = 0;
+ uint32_t pss = 0;
stream >> pss;
total_pss += pss;
if (pss > 0) {
- _W("(PSS %-4ld kb) %s\n", pss, libinfo.c_str());
+ _W("(PSS %-4d kb) %s\n", pss, libinfo.c_str());
}
}
}
}
- _W("[%d] Total PSS %-4ld kB", getpid(), total_pss);
+ _W("[%d] Total PSS %-d kB", getpid(), total_pss);
return;
}
std::unique_lock<std::mutex> lock(context_list_mutex_);
int count = 1;
for (auto& context : contexts_) {
- _I("[%d/%ld] %s Interval",
+ _I("[%d/%zd] %s Interval",
count++, contexts_.size(), context->GetServiceName().c_str());
if (!context->CpuTimeInterval())