1 Star 1 Fork 0

Rong Tao/autofdo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
sample_merger.cc 1002 Bytes
一键复制 编辑 原始数据 按行查看 历史
Wei Mi 提交于 2021-05-09 10:38 . Update to latest internal version.
// Copyright 2011 Google Inc. All Rights Reserved.
// Author: dehao@google.com (Dehao Chen)
// Main function to merge different type of profile into txt profile.
#include "base/commandlineflags.h"
#include "profile_creator.h"
#include "third_party/abseil/absl/flags/flag.h"
#include "third_party/abseil/absl/flags/parse.h"
#include "third_party/abseil/absl/flags/usage.h"
ABSL_FLAG(std::string, profile, "data.profile", "Profile file name");
ABSL_FLAG(std::string, profiler, "perf", "Profile type");
ABSL_FLAG(std::string, output_file, "data.txt", "Merged profile file name");
ABSL_FLAG(std::string, binary, "data.binary", "Binary file name");
int main(int argc, char **argv) {
absl::SetProgramUsageMessage(argv[0]);
absl::ParseCommandLine(argc, argv);
if (devtools_crosstool_autofdo::MergeSample(
absl::GetFlag(FLAGS_profile), absl::GetFlag(FLAGS_profiler),
absl::GetFlag(FLAGS_binary), absl::GetFlag(FLAGS_output_file))) {
return 0;
} else {
return -1;
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/rtoax/autofdo.git
git@gitee.com:rtoax/autofdo.git
rtoax
autofdo
autofdo
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385