未验证 提交 14e98a0f 编写于 作者: C chenjian 提交者: GitHub

fix warning (#40133)

上级 a6947991
...@@ -95,7 +95,7 @@ std::unique_ptr<ProfilerResult> Profiler::Stop() { ...@@ -95,7 +95,7 @@ std::unique_ptr<ProfilerResult> Profiler::Stop() {
collector.ThreadNames(); collector.ThreadNames();
for (const auto& kv : thread_names) { for (const auto& kv : thread_names) {
extrainfo.AddExtraInfo(string_format(std::string("%llu"), kv.first), extrainfo.AddExtraInfo(string_format(std::string("%llu"), kv.first),
kv.second); std::string("%s"), kv.second.c_str());
} }
return std::unique_ptr<ProfilerResult>( return std::unique_ptr<ProfilerResult>(
new platform::ProfilerResult(std::move(tree), extrainfo)); new platform::ProfilerResult(std::move(tree), extrainfo));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册