Home
last modified time | relevance | path

Searched refs:end (Results 1 – 25 of 257) sorted by relevance

1234567891011

/developtools/profiler/device/plugins/native_hook/src/
Druntime_stack_range.cpp36 const char* end; member
41 static void GetThreadRuntimeStackRange(const char** start, const char** end) in GetThreadRuntimeStackRange() argument
44 *end = nullptr; in GetThreadRuntimeStackRange()
51 *end = *start + stackSize; in GetThreadRuntimeStackRange()
151 … g_mainStack.end = reinterpret_cast<char*>(CvtStrToInt(line.c_str() + concatPos + 1, BASE_MAX)); in GetMainThreadRuntimeStackRange()
161 static bool IfContained(const char* start, const char* end, const char* ptr) in IfContained() argument
163 bool ret = (ptr >= start && ptr < end); in IfContained()
167 static void GetRuntimeSigalAltStackRange(char** start, char** end) in GetRuntimeSigalAltStackRange() argument
170 *end = nullptr; in GetRuntimeSigalAltStackRange()
177 *end = static_cast<char*>(altStack.ss_sp) + altStack.ss_size; in GetRuntimeSigalAltStackRange()
[all …]
/developtools/profiler/host/smartperf/trace_streamer/src/parser/ebpf_parser/
Debpf_base.cpp34 if (itor == ebpfToTSClockType_.end()) { in InitEbpfDataParser()
73 auto end = startValueToSymAddr->upper_bound(symVaddr); in GetSymbolNameIndexFromSymVaddr() local
75 auto length = std::distance(startValueToSymAddr->begin(), end); in GetSymbolNameIndexFromSymVaddr()
77 end--; in GetSymbolNameIndexFromSymVaddr()
79 auto symbolAddr = reinterpret_cast<const Elf32_Sym*>(end->second); in GetSymbolNameIndexFromSymVaddr()
80 if (end->first <= symVaddr && end->first + symbolAddr->st_size >= symVaddr) { in GetSymbolNameIndexFromSymVaddr()
84 auto symbolAddr = reinterpret_cast<const Elf64_Sym*>(end->second); in GetSymbolNameIndexFromSymVaddr()
85 if (end->first <= symVaddr && end->first + symbolAddr->st_size >= symVaddr) { in GetSymbolNameIndexFromSymVaddr()
121 auto end = startToMapsAddr->upper_bound(ip); in GetSymbolNameIndexFromElfSym() local
122 auto length = std::distance(startToMapsAddr->begin(), end); in GetSymbolNameIndexFromElfSym()
[all …]
/developtools/profiler/device/plugins/ftrace_plugin/src/
Dftrace_field_parser.cpp32 std::string ReadString(const uint8_t start[], const uint8_t end[], int size) in ReadString() argument
36 if (end - start < static_cast<ptrdiff_t>(size)) { in ReadString()
51 bool FtraceFieldParser::ReadData(const uint8_t start[], const uint8_t end[], void* out, size_t size) in ReadData() argument
53 ptrdiff_t memSize = end - start; in ReadData()
59 HILOG_ERROR(LOG_CORE, "copy %zu byte to memory region [%p, %p) FAILED!", size, start, end); in ReadData()
73 uint8_t* end = data + size; in ParseStrField() local
82 retval = ReadString(start, end, format.size); in ParseStrField()
87 strSize = end - start; in ParseStrField()
88 retval = ReadString(start, end, strSize); in ParseStrField()
90 retval = ReadString(start, end, strSize); in ParseStrField()
[all …]
/developtools/profiler/host/smartperf/trace_streamer/src/base/
Ddouble_map.h35 if (streamIdHookidMap != internalMap_.end()) { in Insert()
37 if (hookId == (*streamIdHookidMap).second.end()) { in Insert()
52 if (streamIdHookidMap != internalMap_.end()) { in Find()
54 if (hookId == (*streamIdHookidMap).second.end()) { in Find()
66 if (streamIdHookidMap != internalMap_.end()) { in Find()
74 if (streamIdHookidMap != internalMap_.end()) { in Erase()
81 if (streamIdHookidMap != internalMap_.end()) { in Erase()
83 if (hookId != (*streamIdHookidMap).second.end()) { in Erase()
Dquatra_map.h35 if (streamIdHookidMap != internalMap_.end()) { in Insert()
46 if (streamIdHookidMap != internalMap_.end()) { in Find()
55 if (streamIdHookidMap != internalMap_.end()) { in Erase()
62 if (streamIdHookidMap != internalMap_.end()) { in Erase()
69 if (streamIdHookidMap != internalMap_.end()) { in Erase()
76 if (streamIdHookidMap != internalMap_.end()) { in Erase()
Dtriple_map.h35 if (streamIdHookidMap != internalMap_.end()) { in Insert()
46 if (streamIdHookidMap != internalMap_.end()) { in Find()
55 if (streamIdHookidMap != internalMap_.end()) { in Erase()
62 if (streamIdHookidMap != internalMap_.end()) { in Erase()
69 if (streamIdHookidMap != internalMap_.end()) { in Erase()
/developtools/profiler/host/smartperf/trace_streamer/src/table/
Dindex_map.h33 IndexMap(TableRowId start, TableRowId end);
57 for (auto i = rowIndex_.begin(); i != rowIndex_.end();) { in MixRange()
81 for (auto i = rowIndex_.begin(); i != rowIndex_.end();) { in MixRange()
105 for (auto i = rowIndex_.begin(); i != rowIndex_.end();) { in MixRange()
129 for (auto i = rowIndex_.begin(); i != rowIndex_.end();) { in MixRange()
153 for (auto i = rowIndex_.begin(); i != rowIndex_.end();) { in MixRange()
177 for (auto i = rowIndex_.begin(); i != rowIndex_.end();) { in MixRange()
201 for (auto i = rowIndex_.begin(); i != rowIndex_.end();) { in MixRange()
225 for (auto i = rowIndex_.begin(); i != rowIndex_.end();) { in MixRange()
262 std::remove(rowIndex_.begin(), rowIndex_.end(), row); in Remove()
[all …]
Dindex_map.cpp24 IndexMap::IndexMap(TableRowId start, TableRowId end) in IndexMap() argument
25 : current_(start), start_(start), end_(end), type_(COMPACT) {} in IndexMap()
47 for (auto itor = rowIndex_.begin(); itor != rowIndex_.end(); itor++) { in Print()
63 void IndexMap::Intersect(TableRowId start, TableRowId end) in Intersect() argument
68 for (auto i = rowIndex_.begin(); i != rowIndex_.end(); i++) { in Intersect()
69 if (*i >= start && *i < end) { in Intersect()
81 end_ = std::min(end_, end); in Intersect()
/developtools/global_resource_tool/src/
Dresource_util.cpp46 string::size_type end = str.find(splitter, begin); in Split() local
47 while (end != string::npos) { in Split()
48 string sub = str.substr(begin, end - begin); in Split()
50 begin = end + splitter.size(); in Split()
54 end = str.find(splitter, begin); in Split()
113 if (ret == g_fileClusterMap.end()) { in GetResTypeByDir()
121 auto ret = find_if(g_fileClusterMap.begin(), g_fileClusterMap.end(), [type](auto iter) { in ResTypeToString()
124 if (ret != g_fileClusterMap.end()) { in ResTypeToString()
128 ret = find_if(g_contentClusterMap.begin(), g_contentClusterMap.end(), [type](auto iter) { in ResTypeToString()
131 if (ret != g_contentClusterMap.end()) { in ResTypeToString()
[all …]
Dcmd_parser.cpp119 …auto ret = find_if(inputs_.begin(), inputs_.end(), [inputPath](auto iter) {return inputPath == ite… in AddInput()
120 if (ret != inputs_.end()) { in AddInput()
163 …nd(resourceHeaderPaths_.begin(), resourceHeaderPaths_.end(), argValue) != resourceHeaderPaths_.end in AddResourceHeader()
192 for (auto it = moduleNames_.begin(); it != moduleNames_.end(); it++) { in AddMoudleNames()
193 …auto ret = find_if(moduleNames_.begin(), moduleNames_.end(), [it](auto iter) {return *it == iter;}… in AddMoudleNames()
290 …auto ret = find_if(append_.begin(), append_.end(), [appendPath](auto iter) {return appendPath == i… in AddAppend()
291 if (ret != append_.end()) { in AddAppend()
335 auto result = find_if(argValue.begin(), argValue.end(), [](auto iter) { in IsAscii()
341 if (result != argValue.end()) { in IsAscii()
373 if (handler == handles_.end()) { in HandleProcess()
Dkey_parser.cpp141 keyparams.insert(keyparams.end(), tmp.begin(), tmp.end()); in ParseLSR()
150 if (g_deviceMap.find(folderName) != g_deviceMap.end()) { in ParseLanguage()
198 if (it == g_orientaionMap.end()) { in ParseOrientation()
209 if (it == g_deviceMap.end()) { in ParseDeviceType()
220 if (it == g_nightModeMap.end()) { in ParseNightMode()
231 if (it == g_inputDeviceMap.end()) { in ParseInputDevice()
242 if (it == g_resolutionMap.end()) { in ParseResolution()
/developtools/profiler/device/plugins/hilog_plugin/src/
Dhilog_plugin.cpp266 dataBuffer_.erase(dataBuffer_.begin(), dataBuffer_.end()); in Run()
276 dataBuffer_.erase(dataBuffer_.begin(), dataBuffer_.end()); in Run()
298 char* end = nullptr; in SetHilogLineDetails() local
307 uint32_t value = static_cast<uint32_t>(strtoul(pTmp, &end, DEC_BASE)); in SetHilogLineDetails()
310 pTmp = end; in SetHilogLineDetails()
311 value = static_cast<uint32_t>(strtoul(pTmp, &end, DEC_BASE)); in SetHilogLineDetails()
314 pTmp = end; in SetHilogLineDetails()
328 end = pTmp; in SetHilogLineDetails()
330 end = pTmp; in SetHilogLineDetails()
333 while (end != nullptr && *pTmp != ':') { // 结束符 ':' in SetHilogLineDetails()
[all …]
/developtools/hiperf/interfaces/innerkits/native/src/
Dhiperf_client.cpp34 auto it = std::find(args_.begin(), args_.end(), name); in SetOption()
36 if (it == args_.end()) { in SetOption()
42 if (it != args_.end()) { in SetOption()
50 auto it = std::find(args_.begin(), args_.end(), name); in SetOption()
51 if (it != args_.end()) { in SetOption()
64 auto it = std::find(args_.begin(), args_.end(), name); in SetOption()
66 if (it != args_.end()) { in SetOption()
68 if (it != args_.end()) { in SetOption()
82 if (it != args_.end()) { in SetOption()
93 auto it = std::find(args_.begin(), args_.end(), name); in SetOption()
[all …]
/developtools/profiler/host/smartperf/trace_streamer/src/parser/hiperf_parser/hiperf/
Doption.cpp47 if (found != g_MainOptions.end()) { in FindMainOption()
61 for (; tmpit != args.end(); tmpit++) { in FindOption()
67 auto it = find(args.begin(), args.end(), optionName); in FindOption()
68 if (it != args.end()) { in FindOption()
69 if (tmpit != args.end() && it > tmpit) { in FindOption()
70 it = args.end(); in FindOption()
132 trackedCommand.insert(trackedCommand.begin(), args.begin(), args.end()); in GetOptionTrackedCommand()
Dcallstack.cpp165 if (dynInfoProcessMap.find(unwindInfoPtr->thread.pid_) == dynInfoProcessMap.end()) { in FindUnwindTable()
170 if (dynFileMap.find(symbolsFile->filePath_) == dynFileMap.end()) { in FindUnwindTable()
194 HLOG_ASSERT(dynInfoProcessMap.find(unwindInfoPtr->thread.pid_) != dynInfoProcessMap.end()); in FindUnwindTable()
195 HLOG_ASSERT_MESSAGE(dynFileMap.find(symbolsFile->filePath_) != dynFileMap.end(), "%s", in FindUnwindTable()
260 if (process != unwindInfoPtr.callStack.porcessMemoryMap_.end()) { in ReadVirtualThreadMemory()
262 if (memory != process->second.end()) { in ReadVirtualThreadMemory()
552 const auto newIt = newCallFrames.end() - expandLimit; in DoExpandCallStack()
559 auto cachedIt = find(cachedCallFrames.begin(), cachedCallFrames.end(), *newIt); in DoExpandCallStack()
560 if (cachedIt == cachedCallFrames.end()) { in DoExpandCallStack()
565 while (std::distance(cachedIt, cachedCallFrames.end()) >= signed(expandLimit)) { in DoExpandCallStack()
[all …]
/developtools/hiperf/src/
Doption.cpp47 if (found != g_MainOptions.end()) { in FindMainOption()
61 for (; tmpit != args.end(); tmpit++) { in FindOption()
67 auto it = find(args.begin(), args.end(), optionName); in FindOption()
68 if (it != args.end()) { in FindOption()
69 if (tmpit != args.end() && it > tmpit) { in FindOption()
70 it = args.end(); in FindOption()
148 trackedCommand.insert(trackedCommand.begin(), args.begin(), args.end()); in GetOptionTrackedCommand()
Dreport_json_file.cpp39 while (symbolsFileIt != symbolsFiles.end()) { in ProcessSymbolsFiles()
44 while (symbolIt != symbols.end()) { in ProcessSymbolsFiles()
68 if (find(configpair.first.begin(), configpair.first.end(), id) != configpair.first.end()) { in GetConfig()
79 auto it = find(functionList_.begin(), functionList_.end(), functionKey(libId, function)); in GetFuncionID()
80 if (it != functionList_.end()) { in GetFuncionID()
109 while (it != frames.end()) { in AddReportCallStack()
121 if (it + 1 == frames.end()) { in AddReportCallStack()
181 auto it = find(libList_.begin(), libList_.end(), filepath); in GetLibID()
182 if (it != libList_.end()) { in GetLibID()
201 while (it != frames.end()) { in UpdateReportCallStack()
Dcallstack.cpp166 if (dynInfoProcessMap.find(unwindInfoPtr->thread.pid_) == dynInfoProcessMap.end()) { in FindUnwindTable()
171 if (dynFileMap.find(symbolsFile->filePath_) == dynFileMap.end()) { in FindUnwindTable()
195 HLOG_ASSERT(dynInfoProcessMap.find(unwindInfoPtr->thread.pid_) != dynInfoProcessMap.end()); in FindUnwindTable()
196 HLOG_ASSERT_MESSAGE(dynFileMap.find(symbolsFile->filePath_) != dynFileMap.end(), "%s", in FindUnwindTable()
261 if (process != unwindInfoPtr.callStack.porcessMemoryMap_.end()) { in ReadVirtualThreadMemory()
263 if (memory != process->second.end()) { in ReadVirtualThreadMemory()
555 const auto newIt = newCallFrames.end() - expandLimit; in DoExpandCallStack()
563 auto cachedIt = find(cachedCallFrames.begin(), cachedCallFrames.end(), *newIt); in DoExpandCallStack()
564 if (cachedIt == cachedCallFrames.end()) { in DoExpandCallStack()
569 while (std::distance(cachedIt, cachedCallFrames.end()) >= signed(expandLimit)) { in DoExpandCallStack()
[all …]
/developtools/profiler/device/plugins/ftrace_plugin/include/
Dftrace_field_parser.h30 auto end = data + size; in ParseIntField() local
32 ReadData(start, end, &retval, format.size); in ParseIntField()
50 auto end = start + retvalSize; in ParseVectorIntField() local
52 ReadData(start, end, &retval, retvalSize); in ParseVectorIntField()
79 static bool ReadData(const uint8_t start[], const uint8_t end[], VoidPtr out, size_t size);
/developtools/profiler/host/smartperf/trace_streamer/src/filter/
Dsymbols_filter.cpp36 if (symbolsMap_.find(addr) == symbolsMap_.end()) { in RegisterFunc()
46 if (symbolsMap_.find(addr) == symbolsMap_.end()) { in GetFunc()
48 if (lastAddr == symbolsMap_.end()) { in GetFunc()
/developtools/profiler/host/smartperf/trace_streamer/test/unittest/
Dpaged_memory_parser_test.cpp60 dequeBuffer.insert(dequeBuffer.end(), &(reinterpret_cast<uint8_t*>(&ebpfHeader))[0],
75 dequeBuffer.insert(dequeBuffer.end(), &(reinterpret_cast<uint8_t*>(&ebpfTypeAndLength))[0],
77 dequeBuffer.insert(dequeBuffer.end(), &(reinterpret_cast<uint8_t*>(&pagedMemoryFixedHeader))[0],
118 dequeBuffer.insert(dequeBuffer.end(), &(reinterpret_cast<uint8_t*>(&ebpfHeader))[0],
133 dequeBuffer.insert(dequeBuffer.end(), &(reinterpret_cast<uint8_t*>(&ebpfTypeAndLength))[0],
135 dequeBuffer.insert(dequeBuffer.end(), &(reinterpret_cast<uint8_t*>(&pagedMemoryFixedHeader))[0],
176 dequeBuffer.insert(dequeBuffer.end(), reinterpret_cast<uint8_t*>(&ebpfHeader),
192 dequeBuffer.insert(dequeBuffer.end(), reinterpret_cast<uint8_t*>(&ebpfTypeAndLength),
194 dequeBuffer.insert(dequeBuffer.end(), reinterpret_cast<uint8_t*>(&pagedMemoryFixedHeader),
196 dequeBuffer.insert(dequeBuffer.end(), reinterpret_cast<const uint8_t*>(ips),
[all …]
/developtools/profiler/host/smartperf/client/client_command/
Dsp_task.cpp66 for (auto it = myMap.begin(); it != myMap.end(); ++it) { in MapToString()
70 str.erase(str.end() - subLen, str.end()); in MapToString()
106 dataMap.insert(itemMap.begin(), itemMap.end()); in StartTask()
146 destMap.insert(taskInfoMap.begin(), taskInfoMap.end()); in StopTask()
147 destMap.insert(deviceInfo.begin(), deviceInfo.end()); in StopTask()
148 destMap.insert(cpuInfo.begin(), cpuInfo.end()); in StopTask()
149 destMap.insert(gpuInfo.begin(), gpuInfo.end()); in StopTask()
/developtools/profiler/device/plugins/process_plugin/src/
Dprocess_data_plugin.cpp176 auto pidsEnd = pids_.end(); in addPidBySort()
206 char* end = nullptr; in WriteProcess() local
207 int32_t value = static_cast<int32_t>(strtoul(totalbuffer.CurWord(), &end, DEC_BASE)); in WriteProcess()
217 char* end = nullptr; in WriteProcess() local
218 int32_t value = static_cast<int32_t>(strtoul(totalbuffer.CurWord(), &end, DEC_BASE)); in WriteProcess()
230 char* end = nullptr; in WriteProcess() local
231 int32_t value = static_cast<int32_t>(strtoul(curWord.c_str(), &end, DEC_BASE)); in WriteProcess()
355 if (cpuTime_.find(pid) != cpuTime_.end()) { in WriteCpuUsageData()
358 if (bootTime_.find(pid) != bootTime_.end()) { in WriteCpuUsageData()
408 char* end = nullptr; in GetBootData() local
[all …]
/developtools/profiler/device/plugins/api/src/
Dplugin_manager.cpp92 if (pluginIds_.find(pluginName) != pluginIds_.end()) { in AddPlugin()
150 if (it == pluginIds_.end()) { in RemovePlugin()
196 if (it == pluginIds_.end()) { in RemovePlugin()
209 if (it == pluginIds_.end()) { in LoadPlugin()
227 if (it == pluginIds_.end()) { in UnloadPlugin()
238 if (pluginModules_.find(pluginId) == pluginModules_.end()) { in UnloadPlugin()
255 if (it == pluginIds_.end()) { in CreatePluginSession()
270 if (it == pluginModules_.end()) { in DestroyPluginSession()
286 if (it == pluginModules_.end()) { in StartPluginSession()
334 if (pluginModules_.find(id) == pluginModules_.end()) { in StopPluginSession()
[all …]
/developtools/profiler/host/smartperf/client/client_ui/entry/src/main/ets/common/ui/floatwindow/utils/
DFloatWindowUtils.ets49 console.log("xhq win setTransparent end.");
60 console.log("xhq win setTransparent end.");
72 console.log("xhq win setTransparent end.");
84 console.log("xhq win setTransparent end.");
96 console.log("xhq win setTransparent end.");
108 console.log("xhq win setTransparent end.");
120 console.log("xhq win setTransparent end.");
132 console.log("xhq win setTransparent end.");
143 console.log("xhq win setTransparent end.");

1234567891011