未验证 提交 23998b75 编写于 作者: C chenjian 提交者: GitHub

fix warning (#45870)

上级 8add11a0
......@@ -111,15 +111,14 @@ void CPUAllocator::Free(void* p, size_t size, size_t index) {
munlock(p, size);
#endif
}
HOST_MEMORY_STAT_UPDATE(Reserved, 0, -size);
platform::RecordMemEvent(
p, CPUPlace(), size, platform::TracerMemEventType::ReservedFree);
#ifdef _WIN32
_aligned_free(p);
#else
free(p);
#endif
HOST_MEMORY_STAT_UPDATE(Reserved, 0, -size);
platform::RecordMemEvent(
p, CPUPlace(), size, platform::TracerMemEventType::ReservedFree);
}
bool CPUAllocator::UseGpu() const { return false; }
......
......@@ -546,10 +546,10 @@ void ChromeTracingLogger::HandleTypeMemset(
}
void ChromeTracingLogger::StartLog() {
output_file_stream_ << string_format(std::string(
output_file_stream_ << std::string(
R"JSON(
{
"displayTimeUnit": "ms",)JSON"));
"displayTimeUnit": "ms",)JSON");
}
void ChromeTracingLogger::LogMetaInfo(const std::string& version,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册