Home
last modified time | relevance | path

Searched refs:begin (Results 1 – 25 of 193) sorted by relevance

12345678

/developtools/hiperf/src/
Dvirtual_thread.cpp37 if (memMaps_[memMapsIndexs_[index - 1]]->end > memMaps_[memMapsIndexs_[index]]->begin) { in IsSorted()
39 << " " << memMaps_[memMapsIndexs_[index - 1]]->begin << "-" in IsSorted()
41 << " " << memMaps_[memMapsIndexs_[index]]->begin << "-" in IsSorted()
57 if (memMaps_[memMapsIndexs_[0]]->begin > addr) { in FindMapIndexByAddr()
79 … if (addr >= memMaps_[memMapsIndexs_[left]]->begin && addr < memMaps_[memMapsIndexs_[left]]->end) { in FindMapIndexByAddr()
94 if (memMaps_[memMapsIndexs_[0]]->begin > addr) { in FindMapByAddr()
116 … if (addr >= memMaps_[memMapsIndexs_[left]]->begin && addr < memMaps_[memMapsIndexs_[left]]->end) { in FindMapByAddr()
132 if (offset >= map->offset && (offset - map->offset) < (map->end - map->begin)) { in FindMapByFileInfo()
135 offset, map->begin, map->end, map->offset, map->name.c_str()); in FindMapByFileInfo()
157 if (find(missedSymbolFile_.begin(), missedSymbolFile_.end(), inMap.name) == in FindSymbolsFileByMap()
[all …]
Dreport_json_file.cpp39 auto symbolsFileIt = symbolsFiles.begin(); in ProcessSymbolsFiles()
44 auto symbolIt = symbols.begin(); in ProcessSymbolsFiles()
69 if (find(configpair.first.begin(), configpair.first.end(), id) != configpair.first.end()) { in GetConfig()
75 return reportConfigItems_.begin()->second; in GetConfig()
80 auto it = find(functionList_.begin(), functionList_.end(), functionKey(libId, function)); in GetFunctionID()
82 return it - functionList_.begin(); in GetFunctionID()
109 auto it = frames.begin(); in AddReportCallStack()
128 HLOGV("add child %*s %d-%d %s @%d %s", static_cast<int>(it - frames.begin()), "", libId, in AddReportCallStack()
182 auto it = find(libList_.begin(), libList_.end(), filepath); in GetLibID()
184 return it - libList_.begin(); in GetLibID()
[all …]
Dvirtual_runtime.cpp95 comm.erase(std::remove(comm.begin(), comm.end(), '\r'), comm.end()); in ReadThreadName()
96 comm.erase(std::remove(comm.begin(), comm.end(), '\n'), comm.end()); in ReadThreadName()
169 map->begin, map->end, map->offset); in CreateThread()
225 uint64_t begin, uint64_t len, uint64_t offset) in UpdateThreadMaps() argument
228 thread.CreateMapItem(filename, begin, len, offset); in UpdateThreadMaps()
268 if (std::all_of(koMaps.begin(), koMaps.end(), in UpdateKernelModulesSpaceMaps()
269 [](const DfxMap &item) { return item.begin == 0; })) { in UpdateKernelModulesSpaceMaps()
275 auto record = std::make_unique<PerfRecordMmap>(true, 0, 0, map.begin, in UpdateKernelModulesSpaceMaps()
276 map.end - map.begin, 0, map.name); in UpdateKernelModulesSpaceMaps()
280 std::move(koMaps.begin(), koMaps.end(), std::back_inserter(kernelSpaceMemMaps_)); in UpdateKernelModulesSpaceMaps()
[all …]
Doption.cpp59 auto tmpit = args.begin(); in FindOption()
67 auto it = find(args.begin(), args.end(), optionName); in FindOption()
125 stringValues.erase(stringValues.begin()); // remove for next process in GetValueFromString()
148 trackedCommand.insert(trackedCommand.begin(), args.begin(), args.end()); in GetOptionTrackedCommand()
Dreport.cpp71 auto frameIt = sample.callFrames_.begin(); in AddReportItem()
116 auto last = std::unique(config.reportItems_.begin(), config.reportItems_.end(), in StatisticsRecords()
136 auto itemIt = config.reportItems_.begin(); in FilterDisplayRecords()
191 std::sort(config.reportItems_.begin(), config.reportItems_.end(), in AdjustReportItems()
204 std::sort(config.reportItems_.begin(), config.reportItems_.end(), in AdjustReportItems()
223 for (auto it = option_.sortKeys_.begin(); it != option_.sortKeys_.end(); ++it) { in MultiLevelCompare()
256 auto leftFrameIt = std::find(leftCallFrames->begin(), leftCallFrames->end(), rightFrame); in MergeCallFrameCount()
378 displayKeyNames_.insert(displayKeyNames_.begin(), "count"); in OutputStdHead()
494 auto it = config.reportItems_.begin(); in OutputStdContent()
564 ReportItemsConstIt it = left.reportItems_.begin(); in OutputStdContentDiff()
[all …]
Dcommand.cpp39 arguments.erase(arguments.begin()); in DispatchCommands()
54 arguments.erase(arguments.begin()); in DispatchCommands()
/developtools/profiler/device/plugins/native_daemon/src/
Dvirtual_thread.cpp37 if ((*maps_)[index - 1].end > (*maps_)[index].begin) { in IsSorted()
39 << " " << (*maps_)[index - 1].begin << "-" << (*maps_)[index - 1].end in IsSorted()
40 << " " << (*maps_)[index].begin << "-" << (*maps_)[index].end; in IsSorted()
59 if (maps_->front()->begin > addr) { in FindMapByAddr()
81 if (addr >= (*maps_)[left]->begin and addr < (*maps_)[left]->end) { in FindMapByAddr()
110 comm.erase(std::remove(comm.begin(), comm.end(), '\r'), comm.end()); in ReadThreadName()
111 comm.erase(std::remove(comm.begin(), comm.end(), '\n'), comm.end()); in ReadThreadName()
122 if (offset >= map->offset && (offset - map->offset) < (map->end - map->begin)) { in FindMapByFileInfo()
125 offset, map->begin, map->end, map->offset, map->name.c_str()); in FindMapByFileInfo()
143 if (find(missedSymbolFile_.begin(), missedSymbolFile_.end(), inMap->name) == in FindSymbolsFileByMap()
[all …]
Dvirtual_runtime.cpp65 comm.erase(std::remove(comm.begin(), comm.end(), '\r'), comm.end()); in ReadThreadName()
66 comm.erase(std::remove(comm.begin(), comm.end(), '\n'), comm.end()); in ReadThreadName()
134 …for (auto callFrameIt = callFrames.begin() + offset; callFrameIt != callFrames.end(); ++callFrameI… in GetSymbolName()
168 int index = callFrameIt - callFrames.begin(); in GetSymbolName()
321 if (ip > map->begin && ip < map->end) { in GetKernelSymbol()
323 ip, map->begin, map->end, map->name.c_str()); in GetKernelSymbol()
330 symbolsFile->GetVaddrInSymbols(ip, map->begin, map->offset); in GetKernelSymbol()
351 map->begin, map->end, map->name.c_str()); in GetKernelSymbol()
367 symbolsFile->GetVaddrInSymbols(ip, (curMaps->GetMaps())[itemIndex]->begin, in GetUserSymbol()
465 soBegin_ = mapItem->begin; in FillMapsCache()
[all …]
/developtools/hdc/src/common/
Dcircle_buffer.cpp36 for (auto iter = buffers_.begin(); iter != buffers_.end();) { in ~CircleBuffer()
49 for (auto iter = buffers_.begin(); iter != buffers_.end(); ++iter) { in Malloc()
53 data->begin = std::chrono::steady_clock::now(); in Malloc()
64 data->begin = std::chrono::steady_clock::now(); in Malloc()
84 data->begin = std::chrono::steady_clock::now(); in Free()
92 for (auto iter = buffers_.begin(); iter != buffers_.end();) { in FreeMemory()
96 auto begin = data->begin; in FreeMemory() local
97 auto duration = std::chrono::duration_cast<std::chrono::seconds>(end - begin); in FreeMemory()
/developtools/smartperf_host/trace_streamer/src/base/
Dindex_map.h130 (void)std::remove(rowIndex_.begin(), rowIndex_.end(), row); in Remove()
155 auto start = std::lower_bound(rows.begin() + start_, rows.begin() + end_, v); in IntersectabcEqual()
156 auto end = std::upper_bound(start, rows.begin() + end_, v); in IntersectabcEqual()
157 auto newStart = std::distance(rows.begin(), start); in IntersectabcEqual()
158 auto newEnd = std::distance(rows.begin(), end); in IntersectabcEqual()
166 auto start = std::lower_bound(rows.begin() + start_, rows.begin() + end_, v, in IntersectGreaterEqual()
168 auto newStart = std::distance(rows.begin(), start); in IntersectGreaterEqual()
176 auto end = std::upper_bound(rows.begin() + start_, rows.begin() + end_, v, in IntersectLessEqual()
178 auto newEnd = std::distance(rows.begin(), end); in IntersectLessEqual()
193 for (auto i = rowIndex_.begin(); i != rowIndex_.end();) { in RemoveNullElements()
/developtools/smartperf_host/trace_streamer/src/parser/ebpf_parser/
Debpf_splitter.cpp38 std::copy_n(dequeBuffer.begin(), EbpfDataHeader::EBPF_DATA_HEADER_SIZE, in SplitEbpfHeader()
52 …dequeBuffer.erase(dequeBuffer.begin(), dequeBuffer.begin() + EbpfDataHeader::EBPF_DATA_HEADER_SIZE… in SplitEbpfHeader()
80 dequeBuffer.erase(dequeBuffer.begin(), dequeBuffer.begin() + unUsedLength); in AddAndSplitEbpfData()
97 std::copy_n(dequeBuffer.begin(), EBPF_TITLE_SIZE, reinterpret_cast<char*>(&dataTitle)); in SplitEbpfBodyData()
124 dequeBuffer.erase(dequeBuffer.begin(), dequeBuffer.begin() + segLen); in SplitEbpfBodyData()
/developtools/global_resource_tool/src/
Dresource_util.cpp45 string::size_type begin = 0; in Split() local
46 string::size_type end = str.find(splitter, begin); in Split()
48 string sub = str.substr(begin, end - begin); in Split()
50 begin = end + splitter.size(); in Split()
51 if (begin >= len) { in Split()
54 end = str.find(splitter, begin); in Split()
57 if (begin < len) { in Split()
58 out.push_back(str.substr(begin)); in Split()
121 auto ret = find_if(g_fileClusterMap.begin(), g_fileClusterMap.end(), [type](auto iter) { in ResTypeToString()
128 ret = find_if(g_contentClusterMap.begin(), g_contentClusterMap.end(), [type](auto iter) { in ResTypeToString()
[all …]
Dselect_compile_parse.cpp55 transform(limitType.begin(), limitType.end(), limitType.begin(), ::tolower); in ParseTargetConfig()
122 return find(mccmncArray_.begin(), mccmncArray_.end(), mccmncLimit) != mccmncArray_.end(); in IsSelectableMccmnc()
163 return find(localeArray_.begin(), localeArray_.end(), localeLimit) != localeArray_.end(); in IsSelectableLocale()
171 return find(limit.begin(), limit.end(), keyParams[index]) != limit.end(); in IsSelectableOther()
/developtools/smartperf_host/trace_streamer/src/trace_data/trace_stdtype/
Dbase_stdtype.h75 deq.erase(deq.begin(), deq.begin() + readySize_); in EraseElements()
82 deq.erase(deq.begin(), deq.begin() + readySize_); in EraseElements()
/developtools/hiperf/test/unittest/common/native/
Dvirtual_thread_test.cpp94 item.begin = (info->dlpi_addr + info->dlpi_phdr[i].p_vaddr); in MakeMapsFromDlpi()
95 item.end = RoundUp(item.begin + info->dlpi_phdr[i].p_memsz, info->dlpi_phdr[i].p_align); in MakeMapsFromDlpi()
143 EXPECT_EQ(memMaps.front()->begin, phdrMaps.front().begin); in PhdrCallBack()
185 EXPECT_EQ(maps.at(0)->begin, 1000u);
186 EXPECT_EQ(maps.at(1)->begin, 3000u);
187 EXPECT_EQ(maps.at(2)->begin, 10000u);
253 EXPECT_EQ(outMap->begin, 1000u);
257 EXPECT_EQ(outMap->begin, 1000u);
261 EXPECT_EQ(outMap->begin, 1000u);
265 EXPECT_EQ(outMap->begin, 3000u);
[all …]
Dreport_json_file_test.cpp486 auto configIt = json.reportConfigItems_.begin();
511 auto configIt = json->reportConfigItems_.begin();
516 ASSERT_EQ(configIt->second.processes_.begin()->second.threads_.size(), 2u);
517 ReportProcessItem &process = configIt->second.processes_.begin()->second;
518 ReportThreadItem &thread = process.threads_.begin()->second;
521 ReportLibItem &lib = thread.libs_.begin()->second;
548 auto configIt = json->reportConfigItems_.begin();
549 ReportProcessItem &process = configIt->second.processes_.begin()->second;
550 ReportThreadItem &thread = process.threads_.begin()->second;
551 ReportLibItem &lib = thread.libs_.begin()->second;
/developtools/profiler/device/services/profiler_service/src/
Dprofiler_capability_manager.cpp35 for (auto it = pluginCapabilities_.begin(); it != pluginCapabilities_.end(); it++) { in AddCapability()
37 "capability.name conflict with %zu", (it - pluginCapabilities_.begin())); in AddCapability()
65 for (auto it = pluginCapabilities_.begin(); it != pluginCapabilities_.end(); it++) { in UpdateCapability()
78 for (auto it = pluginCapabilities_.begin(); it != pluginCapabilities_.end(); it++) { in RemoveCapability()
/developtools/profiler/device/plugins/native_daemon/test/unittest/common/native/
Dvirtual_thread_test.cpp83 item.begin = (info->dlpi_addr + info->dlpi_phdr[i].p_vaddr); in MakeMapsFromDlpi()
84 item.end = RoundUp(item.begin + info->dlpi_phdr[i].p_memsz, info->dlpi_phdr[i].p_align); in MakeMapsFromDlpi()
128 EXPECT_EQ(memMaps.front()->begin, phdrMaps.front().begin); in PhdrCallBack()
170 EXPECT_EQ(maps.at(0)->begin, 1000u);
171 EXPECT_EQ(maps.at(1)->begin, 3000u);
172 EXPECT_EQ(maps.at(2)->begin, 10000u);
244 EXPECT_EQ(outMap->begin, 1000u);
248 EXPECT_EQ(outMap->begin, 1000u);
252 EXPECT_EQ(outMap->begin, 1000u);
256 EXPECT_EQ(outMap->begin, 3000u);
[all …]
/developtools/ace_js2bundle/ace-loader/plugin/templater/
Ddata.js50 function getValue(begin, end, v, res) { argument
51 if (begin < end) {
53 value: v.slice(begin, end)
/developtools/profiler/host/smartperf/client/client_command/
Dsp_task.cpp64 for (auto it = myMap.begin(); it != myMap.end(); ++it) { in MapToString()
104 dataMap.insert(itemMap.begin(), itemMap.end()); in StartTask()
107 spdata.values.insert(dataMap.begin(), dataMap.end()); in StartTask()
152 destMap.insert(taskInfoMap.begin(), taskInfoMap.end()); in StopTask()
153 destMap.insert(deviceInfo.begin(), deviceInfo.end()); in StopTask()
154 destMap.insert(cpuInfo.begin(), cpuInfo.end()); in StopTask()
155 destMap.insert(gpuInfo.begin(), gpuInfo.end()); in StopTask()
/developtools/smartperf_host/trace_streamer/src/parser/htrace_pbreader_parser/
Dhtrace_parser.cpp80 supportPluginNameIndex_.insert(nativeHookPluginIndex_.begin(), nativeHookPluginIndex_.end()); in InitPluginNameIndex()
86 supportPluginNameIndex_.insert(ftracePluginIndex_.begin(), ftracePluginIndex_.end()); in InitPluginNameIndex()
87 supportPluginNameIndex_.insert(hilogPluginIndex_.begin(), hilogPluginIndex_.end()); in InitPluginNameIndex()
88 supportPluginNameIndex_.insert(hidumpPluginIndex_.begin(), hidumpPluginIndex_.end()); in InitPluginNameIndex()
639 … packagesBuffer_.erase(packagesBuffer_.begin(), packagesBuffer_.begin() + packetHeaderLength_); in GetHeaderAndUpdateLengthMark()
658 std::copy(packagesBuffer_.begin(), packagesBuffer_.begin() + thirdPartySize, buffer); in ParseSDKData()
722 processedDataLen_ += packagesBegin - packagesBuffer_.begin(); in ParseDataRecursively()
723 packagesBuffer_.erase(packagesBuffer_.begin(), packagesBegin); in ParseDataRecursively()
735 auto packagesBegin = packagesBuffer_.begin(); in ParseTraceDataSegment()
738 processedDataLen_ += packagesBegin - packagesBuffer_.begin(); in ParseTraceDataSegment()
[all …]
/developtools/smartperf_host/trace_streamer/src/parser/rawtrace_parser/
Drawtrace_parser.cpp65 …auto ret = memcpy_s(&header, sizeof(RawTraceFileHeader), &(*packagesBuffer_.begin()), sizeof(RawTr… in InitRawTraceFileHeader()
71 packagesCurIter = packagesBuffer_.erase(packagesBuffer_.begin(), packagesCurIter); in InitRawTraceFileHeader()
153 auto packagesCurIter = packagesBuffer_.begin(); in ParseTraceDataSegment()
155 packagesCurIter = packagesBuffer_.erase(packagesBuffer_.begin(), packagesCurIter); in ParseTraceDataSegment()
180 packagesCurIter = packagesBuffer_.erase(packagesBuffer_.begin(), packagesCurIter); in ParseDataRecursively()
/developtools/smartperf_host/trace_streamer/src/filter/
Dargs_filter.cpp40 for (auto it = args.valuesMap_.begin(); it != args.valuesMap_.end(); it++) { in NewArgs()
49 for (auto it = args.valuesMap_.begin(); it != args.valuesMap_.end(); it++) { in AppendArgs()
/developtools/profiler/device/plugins/native_daemon/include/
Dvirtual_thread.h50 soBegin_ = map->begin; in AddMap()
54 maps_.back()->end = map->begin; in AddMap()
96 void CreateMapItem(const std::string filename, uint64_t begin, uint64_t len, uint64_t offset);
/developtools/smartperf_host/trace_streamer/src/rpc/
Dffrt_converter.cpp261 std::string begin = "prev_comm="; in ClassifySchedSwitchLogs() local
263 auto beginPos = log.find(begin) + begin.length(); in ClassifySchedSwitchLogs()
275 std::string begin = "next_pid="; in ClassifySchedSwitchLogs() local
276 auto beginPos = log.find(begin) + begin.length(); in ClassifySchedSwitchLogs()
296 std::string begin = "pid="; in FindFfrtProcessAndClassifyLogs() local
297 auto beginPos = log.find(begin); in FindFfrtProcessAndClassifyLogs()
299 beginPos = beginPos + begin.length(); in FindFfrtProcessAndClassifyLogs()
311 std::string begin = "-"; in FindFfrtProcessAndClassifyLogs() local
312 auto beginPos = res.find_last_of(begin); in FindFfrtProcessAndClassifyLogs()
313 beginPos = beginPos + begin.length(); in FindFfrtProcessAndClassifyLogs()

12345678