Home
last modified time | relevance | path

Searched refs:map (Results 1 – 25 of 358) sorted by relevance

12345678910>>...15

/developtools/hdc/hdc_rust/src/host/
Dparser.rs32 let mut map = HashMap::new(); localVariable
34 map.insert("version", HdcCommand::ClientVersion);
35 map.insert("help", HdcCommand::KernelHelp);
36 map.insert("discover", HdcCommand::KernelTargetDiscover);
37 map.insert("start", HdcCommand::KernelServerStart);
38 map.insert("kill", HdcCommand::KernelServerKill);
39 map.insert("keygen", HdcCommand::ClientKeyGenerate);
40 map.insert("list targets", HdcCommand::KernelTargetList);
41 map.insert("checkserver", HdcCommand::KernelCheckServer);
42 map.insert("checkdevice", HdcCommand::KernelCheckDevice);
[all …]
Dunittest.rs27 .map(|s| s.to_string()) in if_parse_cmd_param_works()
34 .map(|s| s.to_string()) in if_parse_cmd_param_works()
47 .map(|s| s.to_string()) in if_parse_opt_cmd_works()
63 .map(|s| s.to_string()) in if_parse_opt_cmd_param_works()
70 .map(|s| s.to_string()) in if_parse_opt_cmd_param_works()
81 let opts = "-l5 -t 123456".split(" ").map(|s| s.to_string()).collect(); in if_extract_opt_lt_works()
98 .map(|s| s.to_string()) in if_extract_opt_sm_works()
114 let opts = "-s 23333".split(" ").map(|s| s.to_string()).collect(); in if_extract_opt_port_works()
131 .map(|s| s.to_string()) in if_extract_opt_ipv6_works()
149 .map(|s| s.to_string()) in if_extract_opt_invalid_ipv6_works()
[all …]
/developtools/smartperf_host/ide/src/trace/component/trace/base/
DEventCenter.ts17 map: any; property in Event
19 this.map = {};
23 this.map[event] = this.map[event] || [];
24 this.map[event].push(fn);
27 const fnList = this.map[event] || [];
32 const fnList = this.map[event] || [];
46 if (this.map[window.SmartEvent.UI.TraceRowComplete].length > 0) {
47 this.map[window.SmartEvent.UI.TraceRowComplete] = [];
/developtools/global_resource_tool/include/
Dresource_table.h32 …uint32_t CreateResourceTable(const std::map<int32_t, std::vector<std::shared_ptr<ResourceItem>>> &…
33 …uint32_t LoadResTable(const std::string path, std::map<int32_t, std::vector<ResourceItem>> &resInf…
56 std::map<int32_t, uint32_t> data; // pair id and offset
64 … uint32_t SaveToResouorceIndex(const std::map<std::string, std::vector<TableData>> &configs) const;
65 uint32_t CreateIdDefined(const std::map<int32_t, std::vector<ResourceItem>> &allResource) const;
67 bool Prepare(const std::map<std::string, std::vector<TableData>> &configs,
68 std::map<std::string, LimitKeyConfig> &limitKeyConfigs,
69 std::map<std::string, IdSet> &idSets, uint32_t &pos) const;
70 …bool SaveRecordItem(const std::map<std::string, std::vector<TableData>> &configs, std::ostringstre…
71 std::map<std::string, IdSet> &idSets, uint32_t &pos) const;
[all …]
Dresource_module.h31 const std::map<int32_t, std::vector<ResourceItem>> &GetOwner() const;
32 const std::map<ResType, std::vector<DirectoryInfo>> &GetScanDirectorys() const;
33 static uint32_t MergeResourceItem(std::map<int32_t, std::vector<ResourceItem>> &alls,
34 const std::map<int32_t, std::vector<ResourceItem>> &other, bool tipError = false);
40 std::map<int32_t, std::vector<ResourceItem>> owner_;
41 std::map<ResType, std::vector<DirectoryInfo>> scanDirs_;
43 void Push(const std::map<int32_t, std::vector<ResourceItem>> &other);
Dfile_manager.h30 const std::map<int32_t, std::vector<ResourceItem>> &GetResources() const in GetResources()
38 uint32_t MergeResourceItem(const std::map<int32_t, std::vector<ResourceItem>> &resourceInfos);
42 std::map<ResType, std::vector<DirectoryInfo>> &resTypeOfDirs);
46 std::map<int32_t, std::vector<ResourceItem>> items_;
/developtools/profiler/device/plugins/native_daemon/src/
Dvirtual_thread.cpp117 for (auto map : *maps_) { in FindMapByFileInfo()
118 if (name != map->name) { in FindMapByFileInfo()
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()
126 return map; in FindMapByFileInfo()
184 for (auto &map : *maps_) { in ReportVaddrMapMiss()
185 HLOGV("map %s ", map->ToString().c_str()); in ReportVaddrMapMiss()
199 std::shared_ptr<DfxMap> map = (curMemMaps->GetMaps())[itemIndex]; in ReadRoMemory() local
201 vaddr - map->begin, map->begin, map->offset, map->name.c_str()); in ReadRoMemory()
202 map->elf = symbolsFile->GetElfFile(); in ReadRoMemory()
[all …]
/developtools/hiperf/src/
Dvirtual_thread.cpp127 for (auto &map : memMaps_) { in FindMapByFileInfo() local
128 if (name != map->name) { in FindMapByFileInfo()
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()
136 return map; in FindMapByFileInfo()
178 for (auto &map : memMaps_) { in ReportVaddrMapMiss() local
179 HLOGV("map %s ", map->ToString().c_str()); in ReportVaddrMapMiss()
204 auto map = memMaps_[memMapIndex]; in ReadRoMemory() local
205 if (map->elf == nullptr) { in ReadRoMemory()
206 SymbolsFile* symFile = FindSymbolsFileByMap(map); in ReadRoMemory()
[all …]
Dvirtual_runtime.cpp156 for (auto &map : thread.GetMaps()) { in CreateThread() local
160 if (map->name.find(".hap") != std::string::npos && (map->prots & PROT_EXEC)) { in CreateThread()
161 map->prevMap = prevMap; in CreateThread()
162 updateNormalSymbol = !UpdateHapSymbols(map); in CreateThread()
166 std::make_unique<PerfRecordMmap2>(false, thread.pid_, thread.tid_, map); in CreateThread()
168 thread.pid_, thread.tid_, thread.name_.c_str(), map->name.c_str(), in CreateThread()
169 map->begin, map->end, map->offset); in CreateThread()
172 UpdateSymbols(map->name); in CreateThread()
174 prevMap = map; in CreateThread()
186 bool VirtualRuntime::UpdateHapSymbols(std::shared_ptr<DfxMap> map) in UpdateHapSymbols() argument
[all …]
/developtools/hdc/hdc_rust/src/transfer/
Dbuffer.rs52 let mut map = arc_map.write().await; in put() localVariable
53 map.insert(session_id, conn_type); in put()
58 let map = arc_map.read().await; in get() localVariable
59 map.get(&session_id).unwrap().clone() in get()
80 let map = instance.read().await; in put() localVariable
81 let arc_wr = map.get(&session_id).unwrap(); in put()
94 let map = instance.read().await; in send_channel_message() localVariable
95 if let Some(guard) = map.get(&channel_id) { in send_channel_message()
105 let mut map = instance.write().await; in start() localVariable
107 map.insert(id, arc_wr); in start()
[all …]
/developtools/profiler/hiebpf/src/
Dmaps_info.cpp48 uint32_t MapsInfo::GetBinary(const MapsItem &map, std::vector<uint8_t> &buf) in GetBinary() argument
50 … uint32_t fixLen = sizeof(map.start_) + sizeof(map.end_) + sizeof(map.offset_) + sizeof(map.pid_); in GetBinary()
51 uint32_t len = fixLen + sizeof(uint32_t) + map.fileName_.size() + 1; in GetBinary()
54 const uint8_t *rp = reinterpret_cast<const uint8_t *>(&map); in GetBinary()
58 *(reinterpret_cast<uint32_t *>(wp)) = map.fileName_.size() + 1; // fileNameLen in GetBinary()
60 …std::copy(map.fileName_.c_str(), map.fileName_.c_str() + map.fileName_.size() + 1, wp); // fileName in GetBinary()
/developtools/hdc/hdc_rust/src/common/
Djdwp.rs75 let map = self.poll_node_map.clone(); in send_fd_to_target() localVariable
76 let map = map.lock().await; in send_fd_to_target() localVariable
77 let keys = map.keys(); in send_fd_to_target()
79 let v = map.get(k); in send_fd_to_target()
127 let map = self.poll_node_map.clone(); in get_process_list() localVariable
128 let map = map.lock().await; in get_process_list() localVariable
129 let keys = map.keys(); in get_process_list()
131 let value = map.get(key); in get_process_list()
139 pub async fn get_process_list_with_pkg_name(map: NodeMap, debug_or_release: bool) -> String { in get_process_list_with_pkg_name()
141 let map = map.lock().await; in get_process_list_with_pkg_name() localVariable
[all …]
/developtools/smartperf_host/ide/src/trace/component/trace/sheet/cpu/
DTabPaneCpuByThread.ts79 let map: Map<string, any> = new Map<string, any>();
83 this.updateThreadMap(e, cpuByThreadValue, map);
85 this.calculateCount(map, sumWall, sumOcc);
88 private updateThreadMap(e: any, cpuByThreadValue: any, map: Map<string, any>): void {
89 if (map.has(`${e.tid}`)) {
90 this.updateExistingThread(e, cpuByThreadValue, map);
92 this.createThread(e, cpuByThreadValue, map);
96 private updateExistingThread(e: any, cpuByThreadValue: any, map: Map<string, any>): void {
97 let thread = map.get(`${e.tid}`)!;
103 private createThread(e: any, cpuByThreadValue: any, map: Map<string, any>): void {
[all …]
/developtools/profiler/host/smartperf/client/client_command/
DRAM.cpp36 std::map<std::string, std::string> RAM::ItemData() in ItemData()
38 std::map<std::string, std::string> result; in ItemData()
39 std::map<std::string, std::string> sysRamInfo = RAM::GetSysRamInfo(); in ItemData()
43 std::map<std::string, std::string> procRamInfo = RAM::GetRamInfo(); in ItemData()
55 std::map<std::string, std::string> RAM::GetRamInfo() const in GetRamInfo()
60 std::map<std::string, std::string> procRamInfo; in GetRamInfo()
93 std::map<std::string, std::string> RAM::GetSysRamInfo() const in GetSysRamInfo()
95 std::map<std::string, std::string> sysRamInfo; in GetSysRamInfo()
DNetwork.cpp33 std::map<std::string, std::string> Network::ItemData() in ItemData()
35 std::map<std::string, std::string> result; in ItemData()
36 std::map<std::string, std::string> networkInfo = Network::GetNetworkInfo(); in ItemData()
41 std::map<std::string, std::string> Network::GetNetworkInfo() in GetNetworkInfo()
43 std::map<std::string, std::string> networkInfo; in GetNetworkInfo()
/developtools/smartperf_host/ide/src/trace/database/logic-worker/
DProcedureLogicWorkerSchedulingAnalysis.ts257 results: arr.map((it) => {
285 results: arr.map((it) => {
494 let map: Map<number, Array<Irq>> = new Map<number, Array<Irq>>();
498 if (map.has(ca.cpu)) {
499 map.get(ca.cpu)!.push(ca);
501 map.set(ca.cpu, [ca]);
506 for (let key of map.keys()) {
507 let cpuArr = map
513 cpuArr.map((irqBean) => {
581 let map: Map<number, Array<CpuMeasure>> = new Map<number, Array<CpuMeasure>>();
[all …]
/developtools/ace_js2bundle/ace-loader/src/
Dextgen.js20 module.exports = function (source, map) { argument
31 callback(null, parsed.hmlCss.hml, map);
34 callback(null, parsed.hmlCss.css, map);
37 callback(null, parsed.hmlCss.json, map);
Dmanifest-plugin.js17 module.exports = function(source, map) { argument
22 callback(null, JSON.stringify({ 'manifest.json': 'content' }), map)
24 callback(null, source, map)
/developtools/smartperf_host/ide/src/trace/component/schedulingAnalysis/
DTop20ThreadCpuUsage.ts48 private map: Map<string, { chart: LitChartColumn; table: LitTable }> | undefined; property in Top20ThreadCpuUsage
101 this.map = new Map<string, { chart: LitChartColumn; table: LitTable }>();
102 this.map.set('total', { chart: this.chartTotal!, table: this.table! });
103 this.map.set('small', { chart: this.chart2!, table: this.tableSmall! });
104 this.map.set('mid', { chart: this.chart3!, table: this.tableMid! });
105 this.map.set('big', { chart: this.chart4!, table: this.tableBig! });
130 for (let key of this.map!.keys()) {
131 let tab = this.map!.get(key)!.table;
132 let chart = this.map!.get(key)!.chart;
212 for (let key of this.map!.keys()) {
[all …]
/developtools/smartperf_host/ide/src/trace/component/
DStackBar.ts29 let map = new Map<string, StackValue>();
31 if (map.has(v.state)) {
32 let sv = map.get(v.state);
40 map.set(v.state, sv);
45 for (let key of map.keys()) {
47 totalDuration = map.get(key)!.value;
49 arr.push(map.get(key)!);
/developtools/profiler/device/plugins/native_daemon/include/
Dvirtual_thread.h47 void AddMap(std::shared_ptr<DfxMap> map, bool firstMap) in AddMap() argument
50 soBegin_ = map->begin; in AddMap()
51 soEnd_ = map->end; in AddMap()
52 name_ = map->name; in AddMap()
54 maps_.back()->end = map->begin; in AddMap()
55 map->prevMap = maps_.back(); in AddMap()
57 maps_.emplace_back(map); in AddMap()
/developtools/global_resource_tool/src/
Dresource_table.cpp45 map<string, vector<TableData>> configs; in CreateResourceTable()
70 uint32_t ResourceTable::CreateResourceTable(const map<int32_t, vector<shared_ptr<ResourceItem>>> &i… in CreateResourceTable()
72 map<string, vector<TableData>> configs; in CreateResourceTable()
73 map<int32_t, vector<ResourceItem>> allResource; in CreateResourceTable()
101 uint32_t ResourceTable::LoadResTable(const string path, map<int32_t, vector<ResourceItem>> &resInfo… in LoadResTable()
124 map<int32_t, vector<KeyParam>> limitKeys; in LoadResTable()
130 map<int32_t, pair<int32_t, int32_t>> datas; in LoadResTable()
148 uint32_t ResourceTable::CreateIdDefined(const map<int32_t, vector<ResourceItem>> &allResource) const in CreateIdDefined()
183 uint32_t ResourceTable::SaveToResouorceIndex(const map<string, vector<TableData>> &configs) const in SaveToResouorceIndex()
192 map<string, LimitKeyConfig> limitKeyConfigs; in SaveToResouorceIndex()
[all …]
/developtools/profiler/host/smartperf/client/client_ui/entry/src/main/ets/common/database/
DDatabaseUtils.ts305 let map = curGPData.values variable
310 map.get("cpu0Freq"),
311 map.get("cpu1Freq"),
312 map.get("cpu2Freq"),
313 map.get("cpu3Freq"),
314 map.get("cpu4Freq"),
315 map.get("cpu5Freq"),
316 map.get("cpu6Freq"),
317 map.get("cpu7Freq")
322 map.get("cpu0Load"),
[all …]
/developtools/smartperf_host/ide/src/trace/component/trace/sheet/process/
DTabPaneThreadUsage.ts92 let map: Map<number, any> = new Map<number, any>();
95 if (map.has(resultEl.tid)) {
96 map.get(resultEl.tid)[`cpu${resultEl.cpu}`] = resultEl.wallDuration || 0;
97map.get(resultEl.tid)[`cpu${resultEl.cpu}TimeStr`] = getProbablyTime(resultEl.wallDuration || 0);
98 map.get(resultEl.tid)[`cpu${resultEl.cpu}Ratio`] = (
102 map.get(resultEl.tid).wallDuration =
103 map.get(resultEl.tid).wallDuration + (resultEl.wallDuration || 0);
104map.get(resultEl.tid).wallDurationTimeStr = getProbablyTime(map.get(resultEl.tid).wallDuration);
127 map.set(resultEl.tid, threadStatesStruct);
131 this.threadUsageSource = Array.from(map.values());
DTabPaneStartup.ts63 let map: Map<number, StartupTreeItem> = new Map<number, StartupTreeItem>();
65 this.processStartupItem(item, map);
67 let startups = Array.from(map.values());
89 private processStartupItem(item: AppStartupStruct, map: Map<number, StartupTreeItem>): void {
98 if (map.has(item.pid!)) {
99 let ps = map.get(item.pid!);
105 map.set(item.pid!, {

12345678910>>...15