/developtools/profiler/device/plugins/ffrt_profiler/service/src/ |
H A D | ffrt_profiler_common.cpp | 33 tmp = str.substr(beginPos, findPos - beginPos); in SplitString() 36 tmp = str.substr(beginPos); in SplitString() 58 if (processName.substr(0, headSize) == "./") { in GetProcessName() 59 processName = processName.substr(headSize); in GetProcessName() 64 procName = processName.substr(found + 1); in GetProcessName()
|
/developtools/profiler/device/plugins/network_profiler/service/src/ |
H A D | network_profiler_common.cpp | 33 tmp = str.substr(beginPos, findPos - beginPos); in SplitParamValue() 36 tmp = str.substr(beginPos); in SplitParamValue() 58 if (processName.substr(0, headSize) == "./") { in GetProcessNameByPid() 59 processName = processName.substr(headSize); in GetProcessNameByPid() 64 procName = processName.substr(found + 1); in GetProcessNameByPid()
|
/developtools/smartperf_host/trace_streamer/src/rpc/ |
H A D | ffrt_converter.cpp | 72 return std::stoi(match.str().substr(beginPos, endPos - beginPos)); in ExtractProcessId() 80 return match.str().substr(1, match.str().size() - STR_LEGH); in ExtractTimeStr() 92 return match.str().substr(beginPos, endPos - beginPos); in ExtractCpuId() 149 fakeLog = result.get() + fakeLog.substr(beginPos); in ReplaceSchedSwitchLog() 154 fakeLog = fakeLog.substr(0, pcommPos) + result.get() + fakeLog.substr(pPidPos); in ReplaceSchedSwitchLog() 159 fakeLog = fakeLog.substr(0, pPidPos) + result.get() + fakeLog.substr(pPrioPos); in ReplaceSchedSwitchLog() 167 fakeLog = fakeLog.substr(0, nCommPos) + result.get() + fakeLog.substr(nPidPo in ReplaceSchedSwitchLog() [all...] |
/developtools/profiler/host/smartperf/client/client_command/ |
H A D | parse_click_response_trace.cpp | 59 endTime = line.substr(position1 + subNum, position2 - position1 - subNum); in GetLineTime() 73 endTime = endTime.substr(point - subNum); in GetTime() 74 startTime = startTime.substr(point - subNum); in GetTime() 96 appPid = line.substr(position1 + subNum, position2 - position1 - subNum); in GetPid() 106 appPid = line.substr(p1 + pn.length(), p2 - p1 - pn.length()); in GetPid() 129 startTime = line.substr(position1 + subNum, position2 - position1 - subNum); in GetStartTime()
|
H A D | parse_click_complete_trace.cpp | 57 endTime = line.substr(position1 + subNum, position2 - position1 - subNum); in GetLineTime() 83 endTime = endTime.substr(point - subNum); in GetTime() 84 startTime = startTime.substr(point - subNum); in GetTime() 105 appPid = line.substr(position1 + subNum, position2 - position1 - subNum); in GetPid() 115 appPid = line.substr(p1 + pn.length(), p2 - p1 - pn.length()); in GetPid() 137 startTime = line.substr(position1 + subNum, position2 - position1 - subNum); in GetStartTime()
|
H A D | parse_radar.cpp | 85 std::string segments = segment.substr(1); in ParseRadarDelayTime() 89 std::string key = pair.substr(0, pair.find(':')); in ParseRadarDelayTime() 90 std::string value = pair.substr(pair.find(':') + 1); in ParseRadarDelayTime() 157 std::string result = str.substr(pos, commaPos - pos); in ExtractString()
|
H A D | sp_utils.cpp | 61 std::string str1 = a.substr(0, a.find_first_of("0123456789")); in Cmp() 62 std::string str2 = b.substr(0, b.find_first_of("0123456789")); in Cmp() 66 int num1 = std::stoi(a.substr(str1.length())); in Cmp() 67 int num2 = std::stoi(b.substr(str2.length())); in Cmp() 174 std::string tmp = content.substr(index, tEnd - index); in StrSplit() 229 std::string topPkg = curTopPkgStr.substr(left + 1, static_cast<int64_t>(right) - static_cast<int64_t>(left) - 1); in GetTopPkgName() 247 std::string screen = screenStr.substr(left, right - left); in GetScreen() 289 std::string screenSize = screenInfos.substr(pos + len, pos1 - pos - len); in GetDeviceInfoMap() 404 str = str.substr(len); in RemoveSpace() 561 (!SPUtils::FileAccess(a->second.substr( in VerifyValueStr() [all...] |
H A D | stalling_rate_trace.cpp | 388 std::string result1 = line.substr(pos1 + delimiter.length()); in GetFrameRate() 390 std::string result2 = result1.substr(0, pos2); in GetFrameRate() 395 std::string result = line.substr(pos + delimiter.length()); in GetFrameRate() 405 std::string result = line.substr(pos + delimiter.length()); in GetFenceId() 416 startTime = line.substr(positionFirst + subNum, positionSecond - positionFirst - subNum); in GetOnScreenTimeStart() 427 return std::stod(line.substr(positionFirst + subNum, positionSecond - positionFirst - subNum)); in GetTimes()
|
H A D | parse_slide_fps_trace.cpp | 123 return lineStr.substr(position1 + num, position2 - position1 - num); in GetLineTime() 130 return lineStr.substr(position1 + offset, position2 - position1 - offset); in CutString()
|
H A D | navigation.cpp | 71 nameStr = line.substr(pos + paramTen, pos1 - pos - paramEleven); in GetNavResult() 73 nameStr = line.substr(pos + paramTen, pos2 - pos - paramTwelve); in GetNavResult()
|
/developtools/profiler/device/plugins/ftrace_plugin/src/ |
H A D | printk_formats_parser.cpp | 63 std::string addrStr = StringUtils::Strip(line.substr(0, pos)); in Parse() 66 symbol = StringUtils::Strip(line.substr(pos + 1)); in Parse() 71 symbol = symbol.substr(1); in Parse()
|
H A D | string_utils.cpp | 60 return str.substr(first, last - first + 1); in Strip() 87 result.push_back(str.substr(start, pos - start)); in Split() 91 result.push_back(str.substr(start)); in Split()
|
H A D | ftrace_parser.cpp | 151 auto idStr = line.substr(idLinePrefix.size() + 1); in ParseEventFormat() 166 std::string rightHalf = typeName.substr(posT0 + 1); in SplitNameFromTypeName() 175 name = rightHalf.substr(0, postT1); in SplitNameFromTypeName() 423 std::stringstream ss(line.substr(pos + sep.size())); in ParsePerCpuStatus() 424 std::string name = line.substr(0, pos); in ParsePerCpuStatus() 507 auto pidStr = line.substr(0, pos); in ParseSavedCmdlines() 509 comm = line.substr(pos + 1); in ParseSavedCmdlines()
|
/developtools/smartperf_host/trace_streamer/src/parser/rawtrace_parser/ |
H A D | printk_formats_processor.cpp | 55 std::string addrInfo = base::Strip(curLine.substr(0, pos)); in HandlePrintkSyms() 57 curSymbol = base::Strip(curLine.substr(pos + 1)); in HandlePrintkSyms() 62 curSymbol = curSymbol.substr(1); in HandlePrintkSyms()
|
/developtools/profiler/device/plugins/native_daemon/src/ |
H A D | hook_service.cpp | 75 if (bundleName.substr(0, 2) == "./") { // 2: size in ProtocolProc() 76 bundleName = bundleName.substr(2); // 2: point in ProtocolProc() 81 procName = bundleName.substr(found + 1); in ProtocolProc()
|
/developtools/global_resource_tool/src/ |
H A D | file_entry.cpp | 246 filePath += filename_.substr(0, filename_.length() - extension_.length()) + extension; in ReplaceExtension() 276 segments.push_back(filePath_.substr(offset, pos - offset)); in GetSegments() 282 segments.push_back(filePath_.substr(offset)); in GetSegments() 340 string subPath = path.substr(0, pos + 1); in CreateDirsInner() 366 parent_ = filePath_.substr(0, pos); in CreateDirsInner() 368 filename_ = filePath_.substr(pos + 1); in CreateDirsInner() 374 extension_ = filename_.substr(pos); in CreateDirsInner()
|
H A D | compression_parser.cpp | 266 return res.substr(0, res.size() - 1); in ParseRules() 560 srcSuffix = src.substr(srcIndex + 1); in CopyForTrans() 561 dstSuffix = dst.substr(dstIndex + 1); in CopyForTrans() 568 string dstPath = outPath_ + SEPARATOR_FILE + RESOURCES_DIR + dst.substr(startIndex); in CopyForTrans() 589 string endStr = dst.substr(startIndex, index - startIndex); in CopyAndTranscode() 621 string qualifierDir = originDst.substr(startIndex, index - startIndex); in CheckAndScaleIcon() 627 string fileName = originDst.substr(index + 1); in CheckAndScaleIcon()
|
H A D | resource_util.cpp | 52 string sub = str.substr(begin, end - begin); in Split() 62 out.push_back(str.substr(begin)); in Split() 153 return name.substr(0, pos); in GetIdName() 199 string buffer = content.substr(pos, size); in DecomposeStrings() 362 result = result.substr(1); in PaserKeyParam()
|
/developtools/smartperf_host/trace_streamer/src/base/ |
H A D | string_help.cpp | 58 result.emplace_back(str.substr(curPos, patPos - curPos)); in SplitStringToVec() 62 result.emplace_back(str.substr(curPos)); in SplitStringToVec() 77 return str.substr(start, end - start + 1); in TrimInvisibleCharacters() 106 return str.substr(first, last - first + 1); in Strip()
|
/developtools/ace_js2bundle/ace-loader/src/ |
H A D | cardJson-plugin.js | 82 const subSource = replaceSource.substr(partStart); 84 let out = subSource.substr(0, partEnd).match(/module\.exports \= ((\s||\S)*)/)[1].trim(); 88 if (out.substr(out.length - 1, 1) === ';') { 89 out = out.substr(0, out.length - 1); 132 const keyName = key.substr(key.lastIndexOf('_') + 1, key.length - key.lastIndexOf('_') + 1);
|
/developtools/profiler/device/plugins/memory_plugin/src/ |
H A D | smaps_stats.cpp | 31 return (name.substr(index) == str); in MatchTail() 142 name = mempic.name.substr(0, mempic.name.size() - strlen(" (deleted)")); in CollectVmemAreasData() 191 word = newline.substr(0, wordsz); in ParseMapHead() 195 smapsHeadInfo.startAddrStr = word.substr(0, pos); in ParseMapHead() 196 smapsHeadInfo.endAddrStr = word.substr(pos + 1, word.size()); in ParseMapHead() 202 smapsHeadInfo.permission = word.substr(0, dataLen); in ParseMapHead() 204 smapsHeadInfo.iNode = strtoll(word.substr(0, word.size()).c_str(), nullptr, DEC_BASE); in ParseMapHead() 207 newline = newline.substr(newlineops); in ParseMapHead() 209 head.name = newline.substr(0, newline.size() - 1); in ParseMapHead()
|
/developtools/smartperf_host/trace_streamer/src/filter/ |
H A D | task_pool_filter.cpp | 68 const auto &infoStr = taskPoolStr.substr(allocationStr_.length(), taskPoolStr.length()); in TaskPoolEvent() 73 const auto &infoStr = taskPoolStr.substr(executeStr_.length(), taskPoolStr.length()); in TaskPoolEvent() 78 const auto &infoStr = taskPoolStr.substr(returnStr_.length(), taskPoolStr.length()); in TaskPoolEvent()
|
/developtools/hiperf/src/ |
H A D | utilities.cpp | 104 result.append(source.substr(0, pos) + to); in StringReplace() 135 std::string token = source.substr(0, pos); in StringSplit() 240 if (prefix.compare(0, prefix.size(), effectStr.substr(0, prefix.size())) == 0) { in IsHexDigits() 241 effectStr = effectStr.substr(prefix.size(), effectStr.size() - prefix.size()); in IsHexDigits() 273 if (fileName.substr(0, prefixPathLen) == "./") { in IsPath() 669 bundleNameTmp = bundleNameTmp.substr(0, pos); in IsExistDebugByApp() 687 bundleName = bundleName.substr(0, pos); in IsExistDebugByPid() 760 int memSize = stoi(line.substr(line.find(":") + 1)); in LittleMemory() 796 return bundleName.substr(0, strlen(bundleName.c_str()));
|
/developtools/hdc/hdc_rust/src/cffi/ |
H A D | log.h | 48 tmpString = tmpString.substr(tmpNum + 1, tmpString.size() - tmpNum); in GetFileNameAny()
|
/developtools/profiler/device/cmds/src/ |
H A D | parse_plugin_config.cpp | 64 pluginConfig += content.substr(0, beginPos); in GetPluginsConfig() 65 content = content.substr(beginPos + destStr.size(), content.size()); in GetPluginsConfig() 71 content = content.substr(beginPos + 1, content.size()); in GetPluginsConfig() 77 std::string contentStr = content.substr(0, endPos); in GetPluginsConfig() 90 content = content.substr(endPos + 1, content.size()); in GetPluginsConfig()
|