代码拉取完成,页面将自动刷新
// utility to process profile symbol list.
#ifndef AUTOFDO_PROFILE_SYMBOL_LIST_H_
#define AUTOFDO_PROFILE_SYMBOL_LIST_H_
#include <cstdint>
#include <utility>
#include <vector>
#include "symbol_map.h"
#include "llvm/ProfileData/SampleProf.h"
// Common flags used by most autofdo tools.
#define AUTOFDO_PROFILE_SYMBOL_LIST_FLAGS \
ABSL_FLAG( \
double, symbol_list_size_coverage_ratio, 1.0, \
"List the largest function symbols where their sizes contribute to " \
"k percent of the total sizes " \
"(k=100*symbol_list_size_coverage_ratio). E.g., when " \
"this is 0.0, no function symbol is listed; when this is 1.0, all " \
"function symbols are listed." \
"Please use the flag with caution if your tool could allow " \
"different values for different targets -- the flag will override " \
"them with a single value. "); \
ABSL_FLAG(bool, compress_symbol_list, true, \
"whether to compress the symbol list.");
namespace devtools_crosstool_autofdo {
// Vector of pairs containing symbol name and size.
using SymbolList = std::vector<std::pair<llvm::StringRef, uint64_t>>;
void fillProfileSymbolList(llvm::sampleprof::ProfileSymbolList *prof_sym_list,
const NameSizeList &name_size_list,
const SymbolMap *symbol_map,
double symbol_list_size_coverage_ratio = -1.0);
} // namespace devtools_crosstool_autofdo
#endif // AUTOFDO_PROFILE_SYMBOL_LIST_H_
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。