/developtools/smartperf_host/ide/src/trace/component/trace/sheet/frequsage/ |
D | TabPaneFreqUsage.ts | 56 for (let i = 0; i < cpuIdResult.length; i++) { 57 queryId.push(cpuIdResult[i].id); 58 IdMap.set(cpuIdResult[i].id, cpuIdResult[i].cpu); 63 for (let i of cpuFreqResult) { 65 ts: i.startNS + threadStatesParam.recordStartNs, 66 cpu: IdMap.get(i.filter_id)!, 67 value: i.value, 68 dur: i.dur, 97 for (let i = 0; i < arr.length; i++) { 100 if (arr[i] === undefined) { [all …]
|
D | TabPaneFreqDataCut.ts | 53 for (let i of processArr) { 56 Utils.PROCESS_MAP.get(i) === null ? 'Process ' + i : Utils.PROCESS_MAP.get(i) + ' ' + i, 58 i, 137 for (let i = 0; i < result.length; i++) { 138 queryId.push(result[i].id); 139 idMap.set(result[i].id, result[i].cpu); 149 for (let i of res) { 151 …new TabPaneCpuFreqConfig(i.startNS + threadStatesParam.recordStartNs, idMap.get(i.filter_id)!, i.v… 227 for (let i = 0; i < value.length; i++) { 230 if (value[i].cpu === dealArr[j].cpu) { [all …]
|
/developtools/profiler/device/plugins/xpower_plugin/test/ |
D | xpower_decoder.cpp | 54 for (int i = 0; i < appDeGpu.frequency().size(); i++) { in CreateAppDetailGpu() local 55 cJSON_AddItemToArray(frequencyArr, cJSON_CreateNumber(appDeGpu.frequency(i))); in CreateAppDetailGpu() 60 for (int i = 0; i < appDeGpu.idle_time().size(); i++) { in CreateAppDetailGpu() local 61 cJSON_AddItemToArray(idleTimeArr, cJSON_CreateNumber(appDeGpu.idle_time(i))); in CreateAppDetailGpu() 66 for (int i = 0; i < appDeGpu.run_time().size(); i++) { in CreateAppDetailGpu() local 67 cJSON_AddItemToArray(runTimeArr, cJSON_CreateNumber(appDeGpu.run_time(i))); in CreateAppDetailGpu() 104 for (int i = 0; i < appDeCpu.thread_load().size(); i++) { in CreateAppDetailCpu() local 105 cJSON_AddItemToArray(threadLoadArr, cJSON_CreateNumber(appDeCpu.thread_load(i))); in CreateAppDetailCpu() 110 for (int i = 0; i < appDeCpu.thread_name().size(); i++) { in CreateAppDetailCpu() local 111 cJSON_AddItemToArray(threadNameArr, cJSON_CreateString(appDeCpu.thread_name(i).c_str())); in CreateAppDetailCpu() [all …]
|
/developtools/smartperf_host/trace_streamer/src/proto_reader/protoc_plugin/ |
D | proto_reader_plugin.cpp | 64 for (int32_t i = 0; i < fileDescriptor_->message_type_count(); ++i) { in ParserDescriptors() local 65 vDescriptor.push_back(fileDescriptor_->message_type(i)); in ParserDescriptors() 72 for (int32_t i = 0; i < descriptor->nested_type_count(); ++i) { in ParserDescriptors() local 73 vDescriptor.push_back(descriptor->nested_type(i)); in ParserDescriptors() 77 for (int32_t i = 0; i < fileDescriptor_->enum_type_count(); ++i) { in ParserDescriptors() local 78 vEnumDescriptor_.push_back(fileDescriptor_->enum_type(i)); in ParserDescriptors() 82 for (int32_t i = 0; i < descriptor->enum_type_count(); ++i) { in ParserDescriptors() local 83 vEnumDescriptor_.push_back(descriptor->enum_type(i)); in ParserDescriptors() 90 for (int32_t i = 0; i < fileDescriptor_->public_dependency_count(); ++i) { in ParserDependencies() local 91 publicImports_.insert(fileDescriptor_->public_dependency(i)); in ParserDependencies() [all …]
|
/developtools/smartperf_host/ide/src/trace/component/trace/base/ |
D | TraceRowRecyclerView.ts | 42 for (let i = 0; i < els.length; i++) { 43 this.refreshRow(els[i], this.visibleObjects[i]); 98 for (let i = 0; i < els.length; i++) { 99 let obj = this.visibleObjects[i + skip]; 100 this.refreshRow(els[i], obj); 109 for (let i = 0; i < this.visibleObjects.length; i++) { variable 110 this.visibleObjects[i].top = totalHeight; 111 this.visibleObjects[i].rowIndex = i; 112 totalHeight += this.visibleObjects[i].rowHeight; 113 this.visibleObjects[i].preObject = i === 0 ? null : this.visibleObjects[i - 1]; [all …]
|
/developtools/profiler/host/smartperf/client/client_ui/entry/src/main/ets/common/ui/detail/utils/ |
D | HandleLostFrame.ts | 30 for (let i = 1; i < 22; i++) { 31 this.mJankArray[i - 1] = (frameTime * i + frameTime * (i + 1)) / 2; 42 for (let i = 0; i < allDrawFrame.length; i++) { 43 console.log(TAG + 'allDrawFrame[i]' + i + allDrawFrame[i]); 44 if (!isNaN(StringUtils.s2L(allDrawFrame[i]))) { 45 jitters[i] = StringUtils.s2L(allDrawFrame[i]); 50 for (let i of jitters.keys()) { 51 let doubleJank = jitters[i] / 1e6; 52 console.log(TAG + 'for jitters[' + i + ']' + doubleJank); 67 for (let i = 2; i < 22; i++) { [all …]
|
/developtools/smartperf_host/ide/src/trace/component/trace/sheet/ |
D | TabPaneCurrent.ts | 107 for (let i = 1; i < tr.length; i++) { 108 … tr[i].querySelector<HTMLInputElement>('#text-input')!.value = this.slicesTimeList[i - 1].text; 198 for (let i = 1; i < tr.length; i++) { 200 … tr[i].querySelector<HTMLInputElement>('#color-input')!.value = this.slicesTimeList[i - 1].color; 202 this.trChangeEvent(tr, i); 205 tr[i].querySelector<HTMLInputElement>('#text-input')!.value = this.slicesTimeList[i - 1].text; 207 tr[i].querySelector('#text-input')?.addEventListener('keyup', (event: unknown) => { 210 this.tableDataSource[i].startTime === this.slicesTimeList[i - 1].startTime && 212 this.tableDataSource[i].endTime === this.slicesTimeList[i - 1].endTime && 218 this.slicesTimeList[i - 1].text = event?.target.value; [all …]
|
/developtools/profiler/proto_encoder/test/unittest/ |
D | base_message_unittest.cpp | 110 for (uint32_t i = 0; i < g_writePos; i++) { variable 111 printf("%02X ", g_buf[i]); 121 for (uint32_t i = 0; i < g_writePos; i++) { variable 122 printf("%02X ", g_buf[i]); 132 for (uint32_t i = 0; i < g_writePos; i++) { variable 133 printf("%02X ", g_buf[i]); 149 for (uint32_t i = 0; i < g_writePos; i++) { variable 150 printf("%02X ", g_buf[i]); 160 for (uint32_t i = 0; i < g_writePos; i++) { variable 161 printf("%02X ", g_buf[i]); [all …]
|
/developtools/profiler/device/plugins/ftrace_plugin/tools/device_kernel_version/default/event_parsers/ |
D | ftrace_v4l2_event_parser.cpp | 22 int i = 0; in v4l2_dqbuf_func() local 23 msg->set_minor(FtraceFieldParser::ParseIntField<int32_t>(format.fields, i++, data, size)); in v4l2_dqbuf_func() 24 msg->set_index(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in v4l2_dqbuf_func() 25 msg->set_type(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in v4l2_dqbuf_func() 26 msg->set_bytesused(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in v4l2_dqbuf_func() 27 msg->set_flags(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in v4l2_dqbuf_func() 28 msg->set_field(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in v4l2_dqbuf_func() 29 msg->set_timestamp(FtraceFieldParser::ParseIntField<int64_t>(format.fields, i++, data, size)); in v4l2_dqbuf_func() 30 …msg->set_timecode_type(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in v4l2_dqbuf_func() 31 …msg->set_timecode_flags(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)… in v4l2_dqbuf_func() [all …]
|
D | ftrace_mmc_event_parser.cpp | 22 int i = 0; in mmc_request_done_func() local 23 msg->set_cmd_opcode(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in mmc_request_done_func() 24 msg->set_cmd_err(FtraceFieldParser::ParseIntField<int32_t>(format.fields, i++, data, size)); in mmc_request_done_func() 25 msg->set_cmd_resp(FtraceFieldParser::ParseStrField(format.fields, i++, data, size)); in mmc_request_done_func() 26 … msg->set_cmd_retries(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in mmc_request_done_func() 27 … msg->set_stop_opcode(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in mmc_request_done_func() 28 msg->set_stop_err(FtraceFieldParser::ParseIntField<int32_t>(format.fields, i++, data, size)); in mmc_request_done_func() 29 msg->set_stop_resp(FtraceFieldParser::ParseStrField(format.fields, i++, data, size)); in mmc_request_done_func() 30 … msg->set_stop_retries(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in mmc_request_done_func() 31 msg->set_sbc_opcode(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in mmc_request_done_func() [all …]
|
D | ftrace_net_event_parser.cpp | 22 int i = 0; in napi_gro_frags_entry_func() local 23 msg->set_name(FtraceFieldParser::ParseStrField(format.fields, i++, data, size)); in napi_gro_frags_entry_func() 24 msg->set_napi_id(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in napi_gro_frags_entry_func() 25 …msg->set_queue_mapping(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in napi_gro_frags_entry_func() 26 msg->set_skbaddr(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in napi_gro_frags_entry_func() 27 … msg->set_vlan_tagged(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in napi_gro_frags_entry_func() 28 msg->set_vlan_proto(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in napi_gro_frags_entry_func() 29 msg->set_vlan_tci(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in napi_gro_frags_entry_func() 30 msg->set_protocol(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in napi_gro_frags_entry_func() 31 msg->set_ip_summed(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in napi_gro_frags_entry_func() [all …]
|
D | ftrace_filelock_event_parser.cpp | 22 int i = 0; in break_lease_block_func() local 23 msg->set_fl(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in break_lease_block_func() 24 msg->set_i_ino(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in break_lease_block_func() 25 msg->set_s_dev(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in break_lease_block_func() 26 msg->set_fl_next(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in break_lease_block_func() 27 msg->set_fl_owner(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in break_lease_block_func() 28 msg->set_fl_flags(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in break_lease_block_func() 29 msg->set_fl_type(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in break_lease_block_func() 30 …msg->set_fl_break_time(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in break_lease_block_func() 31 …msg->set_fl_downgrade_time(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, si… in break_lease_block_func() [all …]
|
D | ftrace_writeback_event_parser.cpp | 22 int i = 0; in balance_dirty_pages_func() local 23 msg->set_bdi(FtraceFieldParser::ParseStrField(format.fields, i++, data, size)); in balance_dirty_pages_func() 24 msg->set_limit(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in balance_dirty_pages_func() 25 msg->set_setpoint(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in balance_dirty_pages_func() 26 msg->set_dirty(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in balance_dirty_pages_func() 27 … msg->set_bdi_setpoint(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in balance_dirty_pages_func() 28 msg->set_bdi_dirty(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in balance_dirty_pages_func() 29 …msg->set_dirty_ratelimit(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size… in balance_dirty_pages_func() 30 …msg->set_task_ratelimit(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)… in balance_dirty_pages_func() 31 msg->set_dirtied(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in balance_dirty_pages_func() [all …]
|
/developtools/smartperf_host/ide/src/hdc/common/ |
D | BaseConversion.ts | 19 for (let i = 0; i < padLen; i++) { 28 for (let i = 0; i < padLen; i++) { 37 for (let i = 0; i < padLen; i++) { 46 for (let i = 0; i < padLen; i++) { 54 for (let i = 0; i < array.length; i++) { 56 result = result + toHex16(array[i]); 58 result = result + array[i];
|
/developtools/smartperf_host/trace_streamer/sdk/demo_sdk/plugin/ |
D | sdk_plugin_data_parser.cpp | 49 for (auto i = 0; i < mockData.counterobj_size(); i++) { in SDKPluginParser() local 50 int32_t counterId = mockData.counterobj(i).id(); in SDKPluginParser() 51 std::string counterName = mockData.counterobj(i).name(); in SDKPluginParser() 56 for (auto i = 0; i < mockData.counterinfo_size(); i++) { in SDKPluginParser() local 57 auto counterInfo = mockData.counterinfo(i); in SDKPluginParser() 62 for (auto i = 0; i < mockData.sliceobj_size(); i++) { in SDKPluginParser() local 63 int32_t sliceId = mockData.sliceobj(i).id(); in SDKPluginParser() 64 std::string sliceName = mockData.sliceobj(i).name(); in SDKPluginParser() 69 for (auto i = 0; i < mockData.sliceinfo_size(); i++) { in SDKPluginParser() local 70 int32_t sliceKey = mockData.sliceinfo(i).id(); in SDKPluginParser() [all …]
|
/developtools/hiperf/test/unittest/common/native/ |
D | perf_file_format_test.cpp | 64 FEATURE i = FEATURE::FIRST_FEATURE; variable 65 while (i <= FEATURE::LAST_FEATURE) { 66 std::string name = PerfFileSection::GetFeatureName(i); 69 i = FEATURE(int(i) + 1); 71 while (i < FEATURE::HIPERF_FIRST_FEATURE) { 72 std::string name = PerfFileSection::GetFeatureName(i); 74 i = FEATURE(int(i) + 1); 76 while (i <= FEATURE::HIPERF_LAST_FEATURE) { 77 std::string name = PerfFileSection::GetFeatureName(i); 80 i = FEATURE(int(i) + 1); [all …]
|
/developtools/profiler/device/plugins/process_plugin/test/unittest/ |
D | process_plugin_unittest.cpp | 113 for (int i = rslt; i >= 0; i--) { in Getexepath() local 114 if (buf[i] == '/') { in Getexepath() 115 buf[i + 1] = '\0'; in Getexepath() 162 for (int i = 0; i < PROCESS_NUM; i++) { in GetCpuData() local 163 …int cpuTimeMs = (g_processCpuData[i].utime + g_processCpuData[i].stime + g_processCpuData[i].cutime in GetCpuData() 164 + g_processCpuData[i].cstime) * Hz; in GetCpuData() 199 for (int i = 0; i < PROCESS_NUM && i < processData.processesinfo().size(); i++) { variable 200 ProcessInfo processesinfo = processData.processesinfo()[i]; 201 EXPECT_EQ(processesinfo.pid(), g_processStatus[i].pid); 202 EXPECT_STREQ(processesinfo.name().c_str(), g_processStatus[i].name.c_str()); [all …]
|
/developtools/profiler/device/services/profiler_service/test/unittest/ |
D | profiler_data_repeater_test.cpp | 47 for (int i = 0; i < bufferSize; i++) { variable 50 EXPECT_EQ(dataRepeater->Size(), i + 1); 72 for (int i = 0; i < itemCounts; i++) { in __anonbcac324c0302() local 85 for (int i = 0; i < itemCounts; i++) { variable 86 int x0 = i; 120 for (int i = 0; i < itemCounts; i++) { in __anonbcac324c0502() local 134 for (int i = 0; i < itemCounts; i++) { variable 135 int x0 = i; 149 for (size_t i = 0; i < pluginDataVec.size(); i++) { variable 150 auto yData = pluginDataVec[i]; [all …]
|
D | profiler_capability_manager_test.cpp | 67 for (int i = 0; i < cnt; i++) { variable 69 cap.set_path(DEFAULT_TEST_PATH + "libcap_" + std::to_string(i) + ".so"); 70 cap.set_name("cap_" + std::to_string(i)); 73 EXPECT_EQ(caps.size(), i + 1); 87 for (int i = 0; i < cnt; i++) { variable 89 cap.set_path(DEFAULT_TEST_PATH + "libcap_" + std::to_string(i) + ".so"); 90 cap.set_name("cap_" + std::to_string(i)); 94 for (int i = 0; i < cnt; i++) { variable 96 cap.set_name("cap_" + std::to_string(i)); 133 for (int i = 0; i < cnt; i++) { variable [all …]
|
/developtools/smartperf_host/trace_streamer/src/base/ |
D | codec_cov.cpp | 30 for (uint32_t i = 0; i < BITS; i++) { in PreNum() local 47 int32_t i = 0; in IsUTF8() local 48 while (i < len) { in IsUTF8() 49 if ((data[i] & mask) == 0x00) { in IsUTF8() 50 i++; in IsUTF8() 53 if ((num = PreNum(data[i])) <= target) { in IsUTF8() 56 i++; in IsUTF8() 58 if ((data[i] & firstByte) != mask) { in IsUTF8() 61 i++; in IsUTF8() 76 int32_t i = 0; in IsGBK() local [all …]
|
/developtools/profiler/device/services/ipc/src/ |
D | ipc_generator_impl.cpp | 125 for (size_t i = 0; i < s.length(); i++) { in SwapName() local 126 char c = s[i]; in SwapName() 158 for (size_t i = 0; i < fileName.length(); i++) { in SetNames() local 159 if (fileName.c_str()[i] == '.') { in SetNames() 162 headFileName_ += fileName.c_str()[i]; in SetNames() 176 for (int i = 0; i < serviceCount_; i++) { in AddService() local 177 if (serviceList_[i].serviceName_ == serviceName) { in AddService() 191 for (int i = 0; i < serviceCount_; i++) { in AddServiceMethod() local 192 if (serviceList_[i].serviceName_ == serviceName) { in AddServiceMethod() 193 return serviceList_[i].AddMethod(methodName, requestName, responseName); in AddServiceMethod() [all …]
|
/developtools/profiler/host/smartperf/client/client_ui/entry/src/main/ets/common/utils/ |
D | CalculationUtils.ts | 36 for (let i = 0; i < fpsList.length; i++) { 37 if (i < 0) { 38 removeList.push(i); 68 for (let i = 1; i < size; i++) { 69 let diff = Math.abs(this.fpsList[i] - this.fpsList[i - 1]); 152 for (let i = 0; i < this.fpsList.length; i++) { 153 if (this.fpsList[i] < this.point) { 163 for (let i = 0; i < fpsJitterList.length; i++) { 164 let jitter = fpsJitterList[i].split(';;'); 182 for (let i in fpsList) { [all …]
|
/developtools/smartperf_host/ide/src/trace/database/data-trafic/utils/ |
D | DataFilter.ts | 39 for (let i = 0; i < it.length; i++) { 40 if (i === it.length - 1) { 42 if (it[i][durKey] === undefined || it[i][durKey] === null) { 44 it[i][durKey] = (endNS || 0) - (it[i][startKey] || 0); 48 if (it[i][durKey] === undefined || it[i][durKey] === null) { 50 it[i][durKey] = (it[i + 1][startKey] || 0) - (it[i][startKey] || 0); 54 if (it[i][durKey] >= pns || it.length < 100) { 56 it[i].v = true; 58 if (i > 0) { 60 let c = it[i][startKey] - it[i - 1][startKey] - it[i - 1][durKey]; [all …]
|
/developtools/smartperf_host/trace_streamer/src/parser/pbreader_parser/arkts/ |
D | pbreader_js_memory_parser.cpp | 55 for (size_t i = 0; i < j["node_fields"].size(); i++) { in from_json() local 56 v.nodeFields.emplace_back(j["node_fields"][i]); in from_json() 59 for (size_t i = 0; i < j["node_types"].size(); i++) { in from_json() local 61 if (j["node_types"][i].is_array()) { in from_json() 62 for (size_t m = 0; m < j["node_types"][i].size(); m++) { in from_json() 63 nodeTypes.emplace_back(j["node_types"][i][m]); in from_json() 67 nodeTypes.emplace_back(j["node_types"][i]); in from_json() 71 for (size_t i = 0; i < j["edge_fields"].size(); i++) { in from_json() local 72 v.edgeFields.emplace_back(j["edge_fields"][i]); in from_json() 74 for (size_t i = 0; i < j["edge_types"].size(); i++) { in from_json() local [all …]
|
/developtools/profiler/device/plugins/cpu_plugin/test/unittest/ |
D | cpu_data_plugin_unittest.cpp | 169 for (int i = rslt; i >= 0; i--) { in Getexepath() local 170 if (buf[i] == '/') { in Getexepath() 171 buf[i + 1] = '\0'; in Getexepath() 189 for (size_t i = 0; i < g_tidList.size(); i++) { in CheckTid() local 190 if (tidListTmp.at(i) != g_tidList.at(i)) { in CheckTid() 315 for (int i = 1; i <= CORE_NUM; i++) { variable 316 CpuCoreUsageInfo cpuCoreUsageInfo = cpuUsageInfo.cores()[i - 1]; 317 GetSystemCpuTime(g_systemStat[i], Hz, systemCpuTime, systemBootTime); 318 EXPECT_EQ(cpuCoreUsageInfo.cpu_core(), g_systemStat[i].core); 324 EXPECT_EQ(cpuCoreUsageInfo.frequency().min_frequency_khz(), g_freq[i - 1].minFreq); [all …]
|