Home
last modified time | relevance | path

Searched refs:substr (Results 1 – 25 of 107) sorted by relevance

12345

/developtools/profiler/device/plugins/ffrt_profiler/service/src/
Dffrt_profiler_common.cpp33 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/
Dnetwork_profiler_common.cpp33 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/
Dffrt_converter.cpp72 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()
148 fakeLog = result.get() + fakeLog.substr(beginPos); in ReplaceSchedSwitchLog()
153 fakeLog = fakeLog.substr(0, pcommPos) + result.get() + fakeLog.substr(pPidPos); in ReplaceSchedSwitchLog()
158 fakeLog = fakeLog.substr(0, pPidPos) + result.get() + fakeLog.substr(pPrioPos); in ReplaceSchedSwitchLog()
165 fakeLog = fakeLog.substr(0, nCommPos) + result.get() + fakeLog.substr(nPidPos); in ReplaceSchedSwitchLog()
170 fakeLog = fakeLog.substr(0, nPidPos) + result.get() + fakeLog.substr(nPrioPos); in ReplaceSchedSwitchLog()
185 fakeLog = fakeLog.substr(0, commPos) + result.get() + fakeLog.substr(pidPos); in ReplaceSchedWakeLog()
190 fakeLog = fakeLog.substr(0, pidPos) + result.get() + fakeLog.substr(prioPos); in ReplaceSchedWakeLog()
[all …]
/developtools/profiler/host/smartperf/client/client_command/
Dparse_click_response_trace.cpp62 endTime = line.substr(position1 + subNum, position2 - position1 - subNum); in GetLineTime()
76 endTime = endTime.substr(point - subNum); in GetTime()
77 startTime = startTime.substr(point - subNum); in GetTime()
99 appPid = line.substr(position1 + subNum, position2 - position1 - subNum); in GetPid()
109 appPid = line.substr(p1 + pn.length(), p2 - p1 - pn.length()); in GetPid()
132 startTime = line.substr(position1 + subNum, position2 - position1 - subNum); in GetStartTime()
Dparse_click_complete_trace.cpp60 endTime = line.substr(position1 + subNum, position2 - position1 - subNum); in GetLineTime()
86 endTime = endTime.substr(point - subNum); in GetTime()
87 startTime = startTime.substr(point - subNum); in GetTime()
108 appPid = line.substr(position1 + subNum, position2 - position1 - subNum); in GetPid()
118 appPid = line.substr(p1 + pn.length(), p2 - p1 - pn.length()); in GetPid()
140 startTime = line.substr(position1 + subNum, position2 - position1 - subNum); in GetStartTime()
Dstalling_rate_trace.cpp124 std::string result1 = line.substr(pos1 + delimiter.length()); in GetFrameRate()
126 std::string result2 = result1.substr(0, pos2); in GetFrameRate()
131 std::string result = line.substr(pos + delimiter.length()); in GetFrameRate()
141 std::string result = line.substr(pos + delimiter.length()); in GetFenceId()
152 startTime = line.substr(position1 + subNum, position2 - position1 - subNum); in GetOnScreenTimeStart()
163 signTime = std::stod(line.substr(position1 + subNum, position2 - position1 - subNum)); in GetTimes()
Dparse_start_frame_trace.cpp54 std::string width = screenStr.substr(twelve, pos - twelve); in CalculateTime()
55 std::string height = screenStr.substr(pos + 1, four); in CalculateTime()
131 return line.substr(position1 + num, position2 - position1 - num); in GetLineTime()
138 return line.substr(position1 + offset, position2 - position1 - static_cast<int>(offset)); in CutString()
150 result.push_back(str.substr(start, pos - start)); in Split()
154 result.push_back(str.substr(start)); in Split()
Dparse_start_trace_noh.cpp88 return line.substr(position1 + num, position2 - position1 - num); in GetLineTime()
95 return line.substr(position1 + offset, position2 - position1 - static_cast<int>(offset)); in CutString()
107 result.push_back(str.substr(start, pos - start)); in Split()
111 result.push_back(str.substr(start)); in Split()
Dparse_trace.cpp63 flagTime = line.substr(position1 + flagTimeSize, position2 - position1 - flagTimeSize); in ParseNohTrace()
88 frameId = line.substr(off, count); in GetFrameId()
100 std::string windowSizeFlag = line.substr(positionWindow1 - subNumSize, subNumSize); in GetWindowTime()
114 windowTime = line.substr(position1 + subNum, position2 - position1 - subNum); in GetWindowTime()
179 endTime = line.substr(p1 + subNum, p2 - p1 - subNum); in ParseCodeTrace()
213 endTime = line.substr(position1 + subNum, position2 - position1 - subNum); in ParseHotTrace()
259 startTime = line.substr(position1 + subNum, position2 - position1 - subNum); in GetStartTime()
Dsp_utils.cpp49 std::string str1 = a.substr(0, a.find_first_of("0123456789")); in Cmp()
50 std::string str2 = b.substr(0, b.find_first_of("0123456789")); in Cmp()
54 int num1 = std::stoi(a.substr(str1.length())); in Cmp()
55 int num2 = std::stoi(b.substr(str2.length())); in Cmp()
153 std::string tmp = content.substr(index, tEnd - index); in StrSplit()
208 …std::string topPkg = curTopPkgStr.substr(left + 1, static_cast<int64_t>(right) - static_cast<int64… in GetTopPkgName()
226 std::string screen = screenStr.substr(left, right - left); in GetScreen()
338 str = str.substr(len); in RemoveSpace()
495 (!SPUtils::FileAccess(a->second.substr(0, pos)))) { // determine if the directory exists in VerifyValueStr()
Dparse_slide_fps_trace.cpp83 return lineStr.substr(position1 + num, position2 - position1 - num); in GetLineTime()
90 return lineStr.substr(position1 + offset, position2 - position1 - offset); in CutString()
Dstartup_delay.cpp191 std::string resultProcId = resultPid.substr(0, splitFlag); in GetSpTcp()
232 std::string resultProcId = resultPid.substr(0, splitFlag); in GetPidByPkg()
258 std::string boundStr = strLine.substr(bounds, 30); in InitXY2()
277 pointXY = boundStr.substr(leftStart + 1, pointXYcount - 1); in InitXY2()
301 std::string boundStr = strLine.substr(bounds, 30); in InitXY()
321 pointXY = boundStr.substr(leftStart + 1, pointXYcount - 1); in InitXY()
Dparse_page_fps_trace.cpp103 return line.substr(position1 + num, position2 - position1 - num); in GetLineTime()
110 return line.substr(position1 + offset, position2 - position1 - offset); in CutString()
/developtools/profiler/device/plugins/ftrace_plugin/src/
Dprintk_formats_parser.cpp63 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()
Dstring_utils.cpp51 return str.substr(first, last - first + 1); in Strip()
78 result.push_back(str.substr(start, pos - start)); in Split()
82 result.push_back(str.substr(start)); in Split()
Dftrace_parser.cpp174 auto idStr = line.substr(idLinePrefix.size() + 1); in ParseEventFormat()
241 std::string rightHalf = typeName.substr(posT0 + 1); in SplitNameFromTypeName()
250 name = rightHalf.substr(0, postT1); in SplitNameFromTypeName()
498 std::stringstream ss(line.substr(pos + sep.size())); in ParsePerCpuStatus()
499 std::string name = line.substr(0, pos); in ParsePerCpuStatus()
582 pid = std::stoi(line.substr(0, pos)); in ParseSavedCmdlines()
583 comm = line.substr(pos + 1); in ParseSavedCmdlines()
Dfile_utils.cpp89 std::string dirName = path.substr(0, pos+1); in WriteFile()
91 std::string fileName = path.substr(pos+1, index); in WriteFile()
/developtools/smartperf_host/trace_streamer/src/parser/rawtrace_parser/
Dprintk_formats_processor.cpp55 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/smartperf_host/trace_streamer/src/base/
Dstring_help.cpp56 result.emplace_back(str.substr(curPos, patPos - curPos)); in SplitStringToVec()
60 result.emplace_back(str.substr(curPos)); in SplitStringToVec()
75 return str.substr(start, end - start + 1); in TrimInvisibleCharacters()
104 return str.substr(first, last - first + 1); in Strip()
/developtools/profiler/device/plugins/native_daemon/src/
Dhook_service.cpp75 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/
Dfile_entry.cpp237 filePath += filename_.substr(0, filename_.length() - extension_.length()) + extension; in ReplaceExtension()
267 segments.push_back(filePath_.substr(offset, pos - offset)); in GetSegments()
273 segments.push_back(filePath_.substr(offset)); in GetSegments()
331 string subPath = path.substr(0, pos + 1); in CreateDirsInner()
357 parent_ = filePath_.substr(0, pos); in CreateDirsInner()
359 filename_ = filePath_.substr(pos + 1); in CreateDirsInner()
365 extension_ = filename_.substr(pos); in CreateDirsInner()
Dresource_util.cpp49 string sub = str.substr(begin, end - begin); in Split()
59 out.push_back(str.substr(begin)); in Split()
145 return name.substr(0, pos); in GetIdName()
191 string buffer = content.substr(pos, size); in DecomposeStrings()
353 result = result.substr(1); in PaserKeyParam()
/developtools/profiler/device/plugins/memory_plugin/src/
Dsmaps_stats.cpp31 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/ace_js2bundle/ace-loader/src/
DcardJson-plugin.js82 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/smartperf_host/trace_streamer/src/filter/
Dtask_pool_filter.cpp68 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()

12345