Home
last modified time | relevance | path

Searched refs:index (Results 1 – 25 of 395) sorted by relevance

12345678910>>...16

/developtools/profiler/device/plugins/diskio_plugin/src/
Dio_stats.cpp110 int index = 0; in GetCpuStats() local
112 cpuData->user_ = fields_[index]; in GetCpuStats()
113 index++; in GetCpuStats()
114 cpuData->nice_ = fields_[index]; in GetCpuStats()
115 index++; in GetCpuStats()
116 cpuData->system_ = fields_[index]; in GetCpuStats()
117 index++; in GetCpuStats()
118 cpuData->idle_ = fields_[index]; in GetCpuStats()
119 index++; in GetCpuStats()
120 cpuData->iowait_ = fields_[index]; in GetCpuStats()
[all …]
/developtools/smartperf_host/trace_streamer/src/trace_data/trace_stdtype/ftrace/
Dsched_stdtype.cpp36 void ThreadStateData::SetDuration(TableRowId index, InternalTime dur) in SetDuration() argument
38 durations_[index] = dur; in SetDuration()
75 TableRowId ThreadStateData::UpdateDuration(TableRowId index, InternalTime ts) in UpdateDuration() argument
77 if (durations_[index] == INVALID_TIME) { in UpdateDuration()
78 durations_[index] = ts - timeStamps_[index]; in UpdateDuration()
80 return itids_[index]; in UpdateDuration()
83 bool ThreadStateData::End(TableRowId index, InternalTime ts) in End() argument
85 if (durations_[index] == INVALID_TIME) { in End()
86 durations_[index] = -1; in End()
91 void ThreadStateData::UpdateState(TableRowId index, TableRowId idState) in UpdateState() argument
[all …]
Dcallstack_stdtype.cpp68 void CallStack::SetDistributeInfo(size_t index, in SetDistributeInfo() argument
75 chainIds_[index] = chainId; in SetDistributeInfo()
76 spanIds_[index] = spanId; in SetDistributeInfo()
77 parentSpanIds_[index] = parentSpanId; in SetDistributeInfo()
78 flags_[index] = flag; in SetDistributeInfo()
79 args_[index] = args; in SetDistributeInfo()
80 argSet_[index] = INVALID_UINT32; in SetDistributeInfo()
104 void CallStack::SetDuration(size_t index, uint64_t timeStamp) in SetDuration() argument
106 durs_[index] = timeStamp - timeStamps_[index]; in SetDuration()
108 void CallStack::SetDurationWithFlag(size_t index, uint64_t timeStamp) in SetDurationWithFlag() argument
[all …]
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/entity/
DSignContentInfo.java116 int index = 0; in getByteContent() local
118 index = ByteArrayUtils.insertCharToByteArray(ret, index, version); in getByteContent()
119 if (index < 0) { in getByteContent()
122 index = ByteArrayUtils.insertShortToByteArray(ret, ret.length, index, size); in getByteContent()
123 if (index < 0) { in getByteContent()
126 index = ByteArrayUtils.insertShortToByteArray(ret, ret.length, index, numOfBlocks); in getByteContent()
127 if (index < 0) { in getByteContent()
132 ret[index] = (byte) tmp.type; in getByteContent()
133 index++; in getByteContent()
134 ret[index] = (byte) tmp.tag; in getByteContent()
[all …]
/developtools/smartperf_host/trace_streamer/src/filter/
Dtask_pool_filter.cpp28 uint32_t TaskPoolFilter::GetIpId(uint32_t index) in GetIpId() argument
30 if (index >= traceDataCache_->GetConstInternalSlicesData().CallIds().size()) { in GetIpId()
33 auto itid = traceDataCache_->GetConstInternalSlicesData().CallIds()[index]; in GetIpId()
41 uint32_t TaskPoolFilter::CheckTheSameTask(uint32_t executeId, uint32_t index) in CheckTheSameTask() argument
43 return IpidExecuteMap_.Find(GetIpId(index), executeId); in CheckTheSameTask()
63 bool TaskPoolFilter::TaskPoolEvent(const std::string& taskPoolStr, uint32_t index) in TaskPoolEvent() argument
70 return UpdateAssignData(args, index); in TaskPoolEvent()
75 return UpdateExecuteData(args, index); in TaskPoolEvent()
80 return UpdateReturnData(args, index); in TaskPoolEvent()
84 return AppendTimeoutRow(index); in TaskPoolEvent()
[all …]
/developtools/profiler/hiebpf/src/
Delf_file.cpp393 const size_t index) in MakeUnique() argument
399 …CHECK_TRUE(shdr->Init(shdrBuf, bufSize, index), nullptr, "SectionHeader::Init(shdrBuf, bufSize, in… in MakeUnique()
406 int index {0}; in ParseSecHeader32() local
407 nameIndex_ = u4Buf[index]; in ParseSecHeader32()
408 index = static_cast<int>(NUMBER::ONE); in ParseSecHeader32()
409 secType_ = u4Buf[index]; in ParseSecHeader32()
410 index = static_cast<int>(NUMBER::TWO); in ParseSecHeader32()
411 secFlags_ = u4Buf[index]; in ParseSecHeader32()
412 index = static_cast<int>(NUMBER::SIX); in ParseSecHeader32()
413 link_ = u4Buf[index]; in ParseSecHeader32()
[all …]
/developtools/profiler/hiebpf/scripts/
Dfstrace_code_generator.py183 index = MIN_DECL_LIST_LEN + 1
186 while index < len(decl_list):
189 prog_decl = '%s, %s %s' % (prog_decl, decl_list[index - 1], decl_list[index])
190 index += 2
322 index = MIN_DECL_LIST_LEN + 1
325 while index < len(decl_list):
328 member_index_list.append(index)
329 index += 2
359 for index in member_index_list:
362 member_name = decl_list[index]
[all …]
/developtools/smartperf_host/ide/src/trace/database/data-trafic/
DFrameDynamicEffectSender.ts62 for (let index = 0; index < len; index++) {
64 animationId: animationId[index],
65 status: status[index],
66 startTs: startTs[index],
67 endTs: endTs[index],
68 dur: dur[index],
69 depth: depth[index],
118 for (let index = 0; index < len; index++) {
120 id: id[index],
121 x: x[index],
[all …]
DFrameJanksSender.ts82 for (let index = 0; index < len; index++) {
84 id: id[index],
85 ipid: ipId[index],
86 name: nameId[index],
87 app_dur: app_dur[index],
88 dur: dur[index],
89 ts: ts[index],
90 jank_tag: jank_tag[index],
91 pid: pid[index],
92 rs_ts: rsTs[index],
[all …]
DHiSysEventDataSender.ts65 for (let index = 0; index < len; index++) {
67 id: id[index],
68 ts: ts[index],
69 pid: pid[index],
70 tid: tid[index],
71 uid: uid[index],
72 dur: dur[index],
73 depth: depth[index],
74 seq: seq[index],
DFrameDynamicEffectReceiver.ts93 for (let index: number = 0; index < res.length; index++) {
94 let itemData = res[index];
121 frameAnimation.animationId[index] = itemData.animationId;
122 frameAnimation.status[index] = itemData.status;
123 frameAnimation.startTs[index] = itemData.startTs;
124 frameAnimation.endTs[index] = itemData.endTs;
125 frameAnimation.dur[index] = itemData.dur;
126 frameAnimation.depth[index] = itemData.depth;
188 for (let index: number = 0; index < res.length; index++) {
189 let itemData = res[index];
[all …]
DFrameJanksReceiver.ts131 for (let index = 0; index < res.length; index++) {
132 let item = res[index];
158 setFrameJanks(frameJanks, item, index);
162 for (let index = 0; index < res.length; index++) {
163 let itemData = res[index];
165 setFrameJanks(frameJanks, itemData, index);
167 …frameJanks.depth[index] = frameDepthList.get(`${type}_${itemData.id}_${itemData.ipid}_${itemData.n…
173 function setFrameJanks(frameJanks: FrameJanks, itemData: any, index: number) {
174 frameJanks.id[index] = itemData.id;
175 frameJanks.ipId[index] = itemData.ipid;
[all …]
DLogDataSender.ts61 for (let index = 0; index < len; index++) {
63 id: id[index],
64 startTs: startTs[index],
65 pid: pid[index],
66 tid: tid[index],
67 dur: dur[index],
68 depth: depth[index],
/developtools/smartperf_host/trace_streamer/src/parser/rawtrace_parser/
Dftrace_event_processor.cpp230 uint8_t index = 0; in SchedSwitch() local
232 …schedSwitchMsg->set_prev_comm(FtraceFieldProcessor::HandleStrField(format.fields, index++, data, s… in SchedSwitch()
233 …schedSwitchMsg->set_prev_pid(FtraceFieldProcessor::HandleIntField<int32_t>(format.fields, index++,… in SchedSwitch()
234 …->set_prev_prio(FtraceFieldProcessor::HandleIntField<int32_t>(format.fields, index++, data, size)); in SchedSwitch()
235 …set_prev_state(FtraceFieldProcessor::HandleIntField<uint64_t>(format.fields, index++, data, size)); in SchedSwitch()
236 …schedSwitchMsg->set_next_comm(FtraceFieldProcessor::HandleStrField(format.fields, index++, data, s… in SchedSwitch()
237 …schedSwitchMsg->set_next_pid(FtraceFieldProcessor::HandleIntField<int32_t>(format.fields, index++,… in SchedSwitch()
238 …->set_next_prio(FtraceFieldProcessor::HandleIntField<int32_t>(format.fields, index++, data, size)); in SchedSwitch()
246 uint8_t index = 0; in SchedBlockedReason() local
248 …schedBlockedMsg->set_pid(FtraceFieldProcessor::HandleIntField<int32_t>(format.fields, index++, dat… in SchedBlockedReason()
[all …]
/developtools/global_resource_tool/src/
Dselect_compile_parse.cpp82 for (size_t index = 0; index < keyParams.size(); index++) { in IsSelectCompile() local
83 auto iter = selectableFuncMatch.find(keyParams[index].keyType); in IsSelectCompile()
87 if (!iter->second(index)) { in IsSelectCompile()
110 bool SelectCompileParse::IsSelectableMccmnc(vector<KeyParam> &keyParams, size_t &index, vector<KeyP… in IsSelectableMccmnc() argument
115 Mccmnc mccmncLimit({keyParams[index++], {KeyType::OTHER, 0}}); in IsSelectableMccmnc()
116 if (index < keyParams.size() && keyParams[index].keyType == KeyType::MNC) { in IsSelectableMccmnc()
117 mccmncLimit.mnc = keyParams[index]; in IsSelectableMccmnc()
119 index--; in IsSelectableMccmnc()
144 bool SelectCompileParse::IsSelectableLocale(vector<KeyParam> &keyParams, size_t &index, vector<KeyP… in IsSelectableLocale() argument
149 Locale localeLimit({keyParams[index++], {KeyType::OTHER, 0}, {KeyType::OTHER, 0}}); in IsSelectableLocale()
[all …]
/developtools/smartperf_host/trace_streamer/src/trace_data/trace_stdtype/ftrace/template/
Danimation_stdtype.cpp29 void Animation::UpdateStartPoint(TableRowId index, InternalTime startPoint) in UpdateStartPoint() argument
31 if (index <= Size()) { in UpdateStartPoint()
32 startPoints_[index] = startPoint; in UpdateStartPoint()
35 void Animation::UpdateEndPoint(TableRowId index, InternalTime endPoint) in UpdateEndPoint() argument
37 if (index <= Size()) { in UpdateEndPoint()
38 endPoins_[index] = endPoint; in UpdateEndPoint()
41 void Animation::UpdateFrameInfo(TableRowId index, InternalTime frameInfo) in UpdateFrameInfo() argument
43 if (index <= Size()) { in UpdateFrameInfo()
44 frameInfos_[index] = frameInfo; in UpdateFrameInfo()
127 void DynamicFrame::UpdateNameIndex(TableRowId index, DataIndex nameId) in UpdateNameIndex() argument
[all …]
Dtask_pool_stdtype.cpp118 void TaskPoolInfo::UpdateAllocationTaskData(uint32_t index, in UpdateAllocationTaskData() argument
124 if (index <= Size()) { in UpdateAllocationTaskData()
125 allocationTaskRows_[index] = allocationTaskRow; in UpdateAllocationTaskData()
126 allocationItids_[index] = allocationItid; in UpdateAllocationTaskData()
127 prioritys_[index] = priority; in UpdateAllocationTaskData()
128 executeStates_[index] = executeState; in UpdateAllocationTaskData()
131 void TaskPoolInfo::UpdateExecuteTaskData(uint32_t index, uint32_t executeTaskRow, uint32_t executeI… in UpdateExecuteTaskData() argument
133 if (index <= Size()) { in UpdateExecuteTaskData()
134 executeTaskRows_[index] = executeTaskRow; in UpdateExecuteTaskData()
135 executeItids_[index] = executeItid; in UpdateExecuteTaskData()
[all …]
/developtools/smartperf_host/ide/src/trace/component/setting/
DSpWebHdcShell.ts168 let index = 0;
181 index++;
182 if (index === 1) {
192 } else if (index === depth) {
217 for (let index = 1; index <= depth; index++) { variable
219 if (index === 1) {
220 … this.shellCanvasCtx!.fillRect(startX, startY, this.shellCanvas!.width - startX, index * 16);
223 } else if (index === depth) {
227 startY + (index - 1) * 16,
229 endY - (startY + (index - 1) * 16)
[all …]
/developtools/smartperf_host/ide/src/trace/component/
DSpInfoAndStas.ts86 for (let index = 0; index < styleTable.children.length; index++) {
88 styleTable.children[index].style.backgroundColor = 'var(--dark-background5,#F6F6F6)';
103 for (let index = 0; index < mete.length; index++) {
105 name: mete[index].name,
106 value: mete[index].valueText,
112 for (let index = 0; index < info.length; index++) {
114 eventName: info[index].event_name,
115 statType: info[index].stat_type,
116 count: info[index].count,
/developtools/ace_js2bundle/
DREADME_zh.md58 index.hml
62 <text class="title">This is the index page.</text>
69 index.css
95 index.js
101 console.info('index page launch');
125 "pages/index/index"
138 - index
139 - index.hml
140 - index.css
141 - index.js
[all …]
/developtools/smartperf_host/ide/src/trace/database/ui-worker/
DProduceWorkerSdkSlice.ts68 for (let index = 0; index < sdkSliceFilters.length; index++) {
69 let item = sdkSliceFilters[index];
71 … SdkSliceStruct.setSdkSliceFrame(sdkSliceFilters[index], 5, startNS, endNS, totalNS, frame);
73 sdkSliceFilters[index].frame = null;
92 for (let index = 0; index < sdkList.length; index++) {
93 let item = sdkList[index];
98 SdkSliceStruct.setSdkSliceFrame(sdkList[index], 5, startNS, endNS, totalNS, frame);
101 index > 0 &&
102 (sdkList[index - 1].frame?.x || 0) === (sdkList[index].frame?.x || 0) &&
103 (sdkList[index - 1].frame?.width || 0) === (sdkList[index].frame?.width || 0)
[all …]
DProduceWorkerSdkCounter.ts76 for (let index = 0; index < sdkCounterFilters.length; index++) {
77 let item = sdkCounterFilters[index];
79 … CounterStruct.setCounterFrame(sdkCounterFilters[index], 5, startNS, endNS, totalNS, frame);
81 sdkCounterFilters[index].frame = null;
99 for (let index = 0; index < sdkCounterList.length; index++) {
100 let item = sdkCounterList[index];
102 index === sdkCounterList.length - 1
104 : (sdkCounterList[index + 1].ts || 0) - (item.ts || 0);
106 CounterStruct.setCounterFrame(sdkCounterList[index], 5, startNS, endNS, totalNS, frame);
109 index > 0 &&
[all …]
/developtools/smartperf_host/ide/src/trace/component/chart/
DSpHiSysEnergyChart.ts110 for (let index = 0; index < anomalyData.length; index++) {
111 let item = anomalyData[index];
116 for (let index = 0; index < powerData.length; index++) {
117 let item = powerData[index];
169 for (let index = 0; index < res.length; index++) {
170 let item = res[index];
171 item.eventName = this.eventNameMap.get(res[index].id!);
172 item.appKey = this.appKeyMap.get(res[index].id!);
173 item.eventValue = this.eventValueMap.get(res[index].id!);
245 for (let index = 0; index < res.length; index++) {
[all …]
/developtools/smartperf_host/ide/src/trace/component/trace/sheet/energy/
DTabPaneEnergyAnomaly.ts38 for (let index = 0; index < bean.length; index++) {
40 let values = Object.values(bean[index]);
55 if (tempSet.has(Object.values(bean[index])[0])) {
66 if (index + 1 < bean.length) {
68 let nextValues = Object.values(bean[index + 1]);
73 index++;
105 for (let index = 0; index < bean.length; index++) {
108 let values = Object.values(bean[index]);
/developtools/hiperf/test/unittest/common/native/
Ddwarf_test.cpp156 for (std::size_t index = 0; index < data128Size; ++index) { in SetUp() local
157 data128[index] = 0xff; in SetUp()
159 std::size_t index {0}; in SetUp() local
160 data[index++] = &absptr; in SetUp()
162 data[index++] = data128; in SetUp()
164 data[index++] = data2; in SetUp()
165 data[index++] = data4; in SetUp()
166 data[index++] = data8; in SetUp()
168 data[index++] = data128; in SetUp()
170 data[index++] = data2; in SetUp()
[all …]

12345678910>>...16