Lines Matching refs:string
19 CompilerLog::CompilerLog(const std::string &logOpt) in CompilerLog()
21 … outputCIR_ = (logOpt.find("cir") != std::string::npos) || (logOpt.find("0") != std::string::npos); in CompilerLog()
22 …outputLLIR_ = (logOpt.find("llir") != std::string::npos) || (logOpt.find("1") != std::string::npos… in CompilerLog()
23 … outputASM_ = (logOpt.find("asm") != std::string::npos) || (logOpt.find("2") != std::string::npos); in CompilerLog()
24 …outputType_ = (logOpt.find("type") != std::string::npos) || (logOpt.find("3") != std::string::npos… in CompilerLog()
25 allMethod_ = logOpt.find("all") != std::string::npos; in CompilerLog()
26 …cerMethod_ = (logOpt.find("all") == std::string::npos) && (logOpt.find("cer") != std::string::npos… in CompilerLog()
27 …noneMethod_ = (logOpt.find("all") == std::string::npos) && (logOpt.find("cer") == std::string::npo… in CompilerLog()
30 void CompilerLog::SetMethodLog(const std::string &fileName, in SetMethodLog()
31 const std::string &methodName, AotMethodLogList *logList) in SetMethodLog()
40 void CompilerLog::SetStubLog(const std::string &stubName, MethodLogList *logList) in SetStubLog()
49 bool MethodLogList::IncludesMethod(const std::string &methodName) const in IncludesMethod()
52 bool found = methods_.find(methodName) != std::string::npos; in IncludesMethod()
56 bool AotMethodLogList::IncludesMethod(const std::string &fileName, const std::string &methodName) c… in IncludesMethod()
66 std::vector<std::string> AotMethodLogList::spiltString(const std::string &str, const char ch) in spiltString()
68 std::vector<std::string> vec {}; in spiltString()
70 std::string spilt; in spiltString()
77 void AotMethodLogList::ParseFileMethodsName(const std::string &logMethods) in ParseFileMethodsName()
79 std::vector<std::string> fileVector = spiltString(logMethods, fileSplitSign); in ParseFileMethodsName()
80 std::vector<std::string> itemVector; in ParseFileMethodsName()
83 std::vector<std::string> methodVector(itemVector.begin() + 1, itemVector.end()); in ParseFileMethodsName()
88 TimeScope::TimeScope(std::string name, std::string methodName, uint32_t methodOffset, CompilerLog* … in TimeScope()
99 TimeScope::TimeScope(std::string name, CompilerLog* log) in TimeScope()
119 std::string shortName = GetShortName(methodName_); in ~TimeScope()
125 const std::string TimeScope::GetShortName(const std::string& methodName) in GetShortName()
127 std::string KeyStr = "@"; in GetShortName()
128 if (methodName.find(KeyStr) != std::string::npos) { in GetShortName()
129 std::string::size_type index = methodName.find(KeyStr); in GetShortName()
130 std::string extracted = methodName.substr(0, index); in GetShortName()
151 std::multimap<int, std::string> PassTimeMap; in PrintPassTime()
168 std::multimap<double, std::pair<uint32_t, std::string>> MethodTimeMap; in PrintMethodTime()
169 std::map<std::pair<uint32_t, std::string>, double>::iterator it; in PrintMethodTime()
219 void CompilerLog::AddMethodTime(const std::string& name, uint32_t id, double time) in AddMethodTime()
225 void CompilerLog::AddPassTime(const std::string& name, double time) in AddPassTime()
230 void CompilerLog::AddCompiledMethod(const std::string& name, const CString& recordName) in AddCompiledMethod()
236 void CompilerLog::RemoveCompiledMethod(const std::string& name, const CString& recordName) in RemoveCompiledMethod()
310 std::set<std::pair<std::string, CString>> &mismatchMethodSet) in SetPGOMismatchResult() argument