Lines Matching full:std
19 CompilerLog::CompilerLog(const std::string &logOpt, bool TraceBC) in CompilerLog()
21 outputCIR_ = logOpt.find("cir") != std::string::npos || in CompilerLog()
22 logOpt.find("0") != std::string::npos; in CompilerLog()
23 outputLLIR_ = logOpt.find("llir") != std::string::npos || in CompilerLog()
24 logOpt.find("1") != std::string::npos; in CompilerLog()
25 outputASM_ = logOpt.find("asm") != std::string::npos || in CompilerLog()
26 logOpt.find("2") != std::string::npos; in CompilerLog()
27 outputType_ = logOpt.find("type") != std::string::npos || in CompilerLog()
28 logOpt.find("3") != std::string::npos; in CompilerLog()
29 allMethod_ = logOpt.find("all") != std::string::npos; in CompilerLog()
30 cerMethod_ = logOpt.find("all") == std::string::npos && in CompilerLog()
31 logOpt.find("cer") != std::string::npos; in CompilerLog()
32 noneMethod_ = logOpt.find("all") == std::string::npos && in CompilerLog()
33 logOpt.find("cer") == std::string::npos; in CompilerLog()
37 void CompilerLog::SetMethodLog(const std::string &fileName, const CString& recordName, in SetMethodLog()
38 const std::string &methodName, AotMethodLogList *logList) in SetMethodLog()
48 bool MethodLogList::IncludesMethod(const std::string &methodName) const in IncludesMethod()
51 bool found = methods_.find(methodName) != std::string::npos; in IncludesMethod()
55 bool AotMethodLogList::IncludesMethod(const std::string &fileName, const std::string &methodName) c… in IncludesMethod()
60 std::vector methodVector = fileMethods_.at(fileName); in IncludesMethod()
65 std::vector<std::string> AotMethodLogList::spiltString(const std::string &str, const char ch) in spiltString()
67 std::vector<std::string> vec {}; in spiltString()
68 std::istringstream sstr(str.c_str()); in spiltString()
69 std::string spilt; in spiltString()
76 void AotMethodLogList::ParseFileMethodsName(const std::string &logMethods) in ParseFileMethodsName()
78 std::vector<std::string> fileVector = spiltString(logMethods, fileSplitSign); in ParseFileMethodsName()
79 std::vector<std::string> itemVector; in ParseFileMethodsName()
82 std::vector<std::string> methodVector(itemVector.begin() + 1, itemVector.end()); in ParseFileMethodsName()
87 TimeScope::TimeScope(std::string name, std::string methodName, uint32_t methodOffset, CompilerLog* … in TimeScope()
88 …: ClockScope(), name_(std::move(name)), methodName_(std::move(methodName)), methodOffset_(methodOf… in TimeScope()
98 TimeScope::TimeScope(std::string name, CompilerLog* log) in TimeScope()
99 : ClockScope(), name_(std::move(name)), log_(log) in TimeScope()
114 LOG_COMPILER(INFO) << std::setw(PASS_LENS) << name_ << " " << std::setw(METHOD_LENS) in ~TimeScope()
115 … << GetShortName(methodName_) << " offset:" << std::setw(OFFSET_LENS) << methodOffset_ in ~TimeScope()
116 … << " time used:" << std::setw(TIME_LENS) << timeUsed_ / MILLION_TIME << "ms"; in ~TimeScope()
118 std::string shortName = GetShortName(methodName_); in ~TimeScope()
124 const std::string TimeScope::GetShortName(const std::string& methodName) in GetShortName()
126 std::string KeyStr = "@"; in GetShortName()
127 if (methodName.find(KeyStr) != std::string::npos) { in GetShortName()
128 std::string::size_type index = methodName.find(KeyStr); in GetShortName()
129 std::string extracted = methodName.substr(0, index); in GetShortName()
149 std::multimap<int, std::string> PassTimeMap; in PrintPassTime()
155 … LOG_COMPILER(INFO) << std::setw(PASS_LENS) << val << " Total cost time is "<< std::setw(TIME_LENS) in PrintPassTime()
157 << std::fixed << std::setprecision(PERCENT_LENS) in PrintPassTime()
166 std::multimap<double, std::pair<uint32_t, std::string>> MethodTimeMap; in PrintMethodTime()
167 std::map<std::pair<uint32_t, std::string>, double>::iterator it; in PrintMethodTime()
175 LOG_COMPILER(INFO) << "method:" << std::setw(METHOD_LENS) << val.second in PrintMethodTime()
176 … << " offset:" << std::setw(OFFSET_LENS) << val.first << " all pass cost time is " in PrintMethodTime()
177 … << std::setw(TIME_LENS) << key / MILLION_TIME << "ms " << "percentage:" << std::fixed in PrintMethodTime()
178 … << std::setprecision(PERCENT_LENS) << key / methodTotalTime * HUNDRED_TIME << "% "; in PrintMethodTime()
180 …LOG_COMPILER(INFO) << "total compile time is " << std::setw(TIME_LENS) << methodTotalTime / MILLIO… in PrintMethodTime()
196 LOG_COMPILER(INFO) << " method: " << std::setw(METHOD_LENS) << it->first in PrintCompiledMethod()
197 << " in record: " << std::setw(RECORD_LENS) << it->second in PrintCompiledMethod()
202 void CompilerLog::AddMethodTime(const std::string& name, uint32_t id, double time) in AddMethodTime()
204 auto methodInfo = std::make_pair(id, name); in AddMethodTime()
208 void CompilerLog::AddPassTime(const std::string& name, double time) in AddPassTime()
213 void CompilerLog::AddCompiledMethod(const std::string& name, const CString& recordName) in AddCompiledMethod()
215 auto info = std::make_pair(name, recordName); in AddCompiledMethod()