| /developtools/profiler/device/plugins/native_hook/test/ |
| D | perf_test_data.cpp | 39 int idx = *static_cast<int*>(param); in UserThread() local 69 printf("Thread %d, %lld: ", idx + 1, currentTimes); in UserThread() 118 for (int idx = 1; idx < argc; ++idx) { in main() local 119 if (strcmp(argv[idx], "-o") == 0) { in main() 120 if (idx + 1 >= argc) { in main() 124 ++idx; in main() 125 outFp = std::unique_ptr<FILE, void (*)(FILE*)>(fopen(argv[idx], "w"), FileClose); in main() 127 printf("File '%s' can't be opened.\n", argv[idx]); in main() 131 } else if (strcmp(argv[idx], "-t") == 0) { in main() 132 if (idx + 1 >= argc) { in main() [all …]
|
| D | hook_test.cpp | 105 int idx = 0; in ThreadFuncCpp() local 111 while (idx < times) { in ThreadFuncCpp() 113 if (idx % timeBase == 0) { in ThreadFuncCpp() 114 printf("thread %ld malloc %d times\n", tid, idx); in ThreadFuncCpp() 119 idx++; in ThreadFuncCpp() 130 int idx = 0; in ThreadFuncCppHook() local 140 while (idx < times) { in ThreadFuncCppHook() 141 if (idx == static_cast<int>(dlopenTrigger)) { in ThreadFuncCppHook() 156 if (idx % timeBase == 0) { in ThreadFuncCppHook() 157 printf("thread %ld malloc %d times\n", tid, idx); in ThreadFuncCppHook() [all …]
|
| D | malloc_test.cpp | 525 int idx; in main() local 526 for (idx = 0; idx < threadNum; ++idx) { in main() 527 int result = pthread_create((thrArrayList[type]) + idx, nullptr, in main() 546 int idx; in main() local 547 for (idx = 0; idx < threadNum; ++idx) { in main() 548 int result = pthread_create((thrArrayList[type]) + idx, in main() 560 int idx; in main() local 562 for (idx = 0; idx < g_threadNum; ++idx) { in main() 563 pthread_join((thrArrayList[type])[idx], nullptr); in main()
|
| D | hook_test.c | 512 int idx; in main() local 513 for (idx = 0; idx < threadNum; ++idx) { in main() 514 … if (pthread_create((thrArrayList[type]) + idx, NULL, ThreadFuncC, (void*)(&mallocSize))) { in main() 537 int idx; in main() local 538 for (idx = 0; idx < threadNum; ++idx) { in main() 539 if (pthread_create((thrArrayList[type]) + idx, NULL, ThreadMmap, NULL)) { in main() 549 int idx; in main() local 551 for (idx = 0; idx < g_threadNum; ++idx) { in main() 552 pthread_join((thrArrayList[type])[idx], NULL); in main()
|
| D | statistics_test.cpp | 315 int idx; in main() local 316 for (idx = 0; idx < threadNum; ++idx) { in main() 317 … if (pthread_create(thrArray + idx, nullptr, HhreadFuncCpp, static_cast<void*>(&forNum)) != 0) { in main() 321 for (idx = 0; idx < threadNum; ++idx) { in main() 322 pthread_join(thrArray[idx], nullptr); in main()
|
| /developtools/profiler/device/plugins/native_daemon/src/ |
| D | main.cpp | 51 size_t idx = 0; in ParseCommand() local 52 while (idx < args.size()) { in ParseCommand() 53 if (args[idx] == "-o") { in ParseCommand() 54 hookData.fileName = args[idx + 1].c_str(); in ParseCommand() 55 } else if (args[idx] == "-p") { in ParseCommand() 56 std::vector<std::string> pids = StringSplit(args[idx + 1], ","); in ParseCommand() 70 } else if (args[idx] == "-n") { in ParseCommand() 71 hookData.processName = args[idx + 1]; in ParseCommand() 72 } else if (args[idx] == "-s") { in ParseCommand() 73 hookData.smbSize = std::stoi(args[idx + 1], nullptr); in ParseCommand() [all …]
|
| D | stack_preprocess.cpp | 297 for (uint8_t idx = 0; idx < rawData->fpDepth ; ++idx) { in TakeResults() local 298 if (fpIp[idx] == 0) { in TakeResults() 301 callFrames_.emplace_back(fpIp[idx] & (~pacMask)); in TakeResults() 383 inline void StackPreprocess::FillOfflineCallStack(std::vector<CallFrame>& callFrames, size_t idx) in FillOfflineCallStack() argument 385 for (; idx < callFrames.size(); ++idx) { in FillOfflineCallStack() 386 callStack_.push_back(callFrames[idx].ip_); in FillOfflineCallStack() 391 BatchNativeHookData& batchNativeHookData, size_t idx) in FillCallStack() argument 393 for (; idx < callFrames.size(); ++idx) { in FillCallStack() 394 ReportFrameMap(callFrames[idx], batchNativeHookData); in FillCallStack() 396 callStack_.push_back(callFrames[idx].callFrameId_); in FillCallStack() [all …]
|
| /developtools/profiler/hiebpf/test/ |
| D | hiebpf_test_demo.cpp | 107 unsigned int idx = 0; in ThreadFuncCpp() local 129 idx++; in ThreadFuncCpp() 130 …ntf("%2d: Thread %ld file(%s) open,write,read,close %u times\n", threadNo, tid, name.c_str(), idx); in ThreadFuncCpp() 139 int idx; in ThreadTimeCost() local 153 for (idx = 0; idx < threadNum; ++idx) { in ThreadTimeCost() 154 args[idx][0] = idx; in ThreadTimeCost() 155 args[idx][1] = writeReadTime; in ThreadTimeCost() 156 … if (pthread_create(thrArray + idx, nullptr, ThreadFuncCpp, static_cast<void*>(args[idx])) != 0) { in ThreadTimeCost() 161 for (idx = 0; idx < threadNum; ++idx) { in ThreadTimeCost() 162 pthread_join(thrArray[idx], nullptr); in ThreadTimeCost()
|
| /developtools/smartperf_host/ide/src/trace/component/trace/sheet/ |
| D | TabPaneFilter.ts | 137 (e: HTMLDivElement, idx: number): void => { 138 this.miningButtonClickListener(e, idx); 215 private miningButtonClickListener(e: HTMLDivElement, idx: number): void { 217 if (idx === 0) { 442 private treeCheckClickSwitch(idx: number, check: boolean, row: NodeListOf<Element>): void{ 445 if (idx === index) { 453 value: idx, 459 row.forEach((e, idx): void => { 463 this.treeCheckClickSwitch(idx, !check!.checked, row); 469 this.treeCheckClickSwitch(idx, ev.target.checked, row); [all …]
|
| /developtools/smartperf_host/trace_streamer/src/table/ftrace/include/ |
| D | thread_table.h | 64 … for (auto idx = indexMapBack_->rowIndex_.begin(); idx != indexMapBack_->rowIndex_.end();) { in HandleIpidConstraint() local 65 if (threadQueue[*idx].switchCount_ != value) { in HandleIpidConstraint() 66 idx++; in HandleIpidConstraint() 69 rowIndexBak_.push_back(*idx); in HandleIpidConstraint() 70 idx++; in HandleIpidConstraint() 77 for (auto idx = 0; idx < size; idx++) { in HandleIpidConstraint() local 78 if (threadQueue[idx].switchCount_ == value) { in HandleIpidConstraint() 79 indexMapBack_->rowIndex_.push_back(idx); in HandleIpidConstraint()
|
| /developtools/integration_verification/tools/deps_guard/elf_file_mgr/ |
| D | elf_file_mgr.py | 51 def __init__(self, idx, caller, callee): argument 52 self["id"] = idx 159 idx = 0 161 orders.append((self.__get_library_order(p["path"]), idx)) 162 idx = idx + 1 184 idx = 0 187 return idx 188 idx = idx + 1 238 def get_elf_by_idx(self, idx): argument 239 if idx < 1 or idx > len(self._elfFiles): [all …]
|
| /developtools/profiler/hidebug/frameworks/native/ |
| D | hidebug_base.c | 154 int idx = 0; in GetMallocHookStartupValue() local 155 while (idx < size - 1 && *ptr && *ptr != '\"') { in GetMallocHookStartupValue() 156 path[idx++] = *ptr++; in GetMallocHookStartupValue() 158 path[idx] = '\0'; in GetMallocHookStartupValue() 160 int idx = 0; in GetMallocHookStartupValue() local 161 while (idx < size - 1 && *ptr) { in GetMallocHookStartupValue() 162 path[idx++] = *ptr++; in GetMallocHookStartupValue() 164 path[idx] = '\0'; in GetMallocHookStartupValue()
|
| /developtools/ace_js2bundle/ace-loader/src/lite/ |
| D | lite-image2bin.js | 46 image.scan(0, 0, image.bitmap.width, image.bitmap.height, function(x, y, idx) { argument 48 const blue = this.bitmap.data[idx + 2]; 53 const green = this.bitmap.data[idx + 1]; 58 const red = this.bitmap.data[idx + 0]; 63 const alpha = this.bitmap.data[idx + 3];
|
| /developtools/smartperf_host/ide/src/trace/component/schedulingAnalysis/utils/ |
| D | Utils.ts | 20 data.forEach((item, idx) => { 22 index: idx + 1, 35 data.forEach((item, idx) => { 37 index: idx + 1,
|
| /developtools/smartperf_host/trace_streamer/src/base/ |
| D | filter_constraints.cpp | 22 void FilterConstraints::AddConstraint(int32_t idx, int32_t col, unsigned char op, bool isSupport) in AddConstraint() argument 25 c.idxInaConstraint = idx; in AddConstraint() 31 void FilterConstraints::UpdateConstraint(int32_t idx, bool isSupport) in UpdateConstraint() argument 33 if (idx >= 0 && static_cast<size_t>(idx) < constraints_.size()) { in UpdateConstraint() 34 constraints_[idx].isSupport = isSupport; in UpdateConstraint()
|
| /developtools/profiler/device/plugins/ftrace_plugin/tools/device_kernel_version/default/event_formatters/ |
| D | ftrace_cpuhp_event_formatter.cpp | 39 msg.cpu(), msg.target(), msg.idx(), functionStr.c_str()); in __anon982d0a550302() 42 msg.cpu(), msg.target(), msg.idx(), msg.fun()); in __anon982d0a550302() 58 …"cpuhp_exit: cpu: %04u state: %3d step: %3d ret: %d", msg.cpu(), msg.state(), msg.idx(), msg.ret… in __anon982d0a550502() 79 … "cpuhp_multi_enter: cpu: %04u target: %3d step: %3d (%s)", msg.cpu(), msg.target(), msg.idx(), in __anon982d0a550702() 83 … "cpuhp_multi_enter: cpu: %04u target: %3d step: %3d (%p)", msg.cpu(), msg.target(), msg.idx(), in __anon982d0a550702()
|
| /developtools/profiler/device/plugins/api/src/ |
| D | plugin_manager.cpp | 251 for (size_t idx = 0; idx < config.size(); ++idx) { in CreatePluginSession() local 252 … PROFILER_LOG_DEBUG(LOG_CORE, "%s:config->name() = %s", __func__, config[idx].name().c_str()); in CreatePluginSession() 253 auto it = pluginIds_.find(config[idx].name()); in CreatePluginSession() 259 …PROFILER_LOG_INFO(LOG_CORE, "%s:index = %d, clock = %s", __func__, it->second, config[idx].clock()… in CreatePluginSession() 260 pluginModules_[it->second]->SetConfigData(config[idx].config_data()); in CreatePluginSession() 261 pluginModules_[it->second]->SetClockId(COMMON::GetClockId(config[idx].clock())); in CreatePluginSession() 282 size_t idx = 0; in StartPluginSession() local 297 if (idx > config.size()) { in StartPluginSession() 298 … PROFILER_LOG_WARN(LOG_CORE, "%s:idx %zu out of size %zu", __func__, idx, config.size()); in StartPluginSession() 301 if (config[idx].sample_interval() == 0) { in StartPluginSession() [all …]
|
| /developtools/smartperf_host/ide/src/trace/component/trace/sheet/cpu/ |
| D | TabPaneCounterSample.ts | 172 let idx = initCounterResultList.findIndex((a) => a.ts >= leftNs); 173 if (idx !== 0) { 175 idx == -1 ? initCounterResultList.length - 1 : idx - 1, 179 if (initCounterResultList[0].ts < leftNs && idx !== 0) initCounterResultList[0].ts = leftNs; 180 initCounterResultList.forEach((item, idx) => { 181 if (idx + 1 == initCounterResultList.length) { 184 item.time = initCounterResultList[idx + 1].ts - item.ts;
|
| /developtools/ace_ets2bundle/compiler/sample/pages/ |
| D | willdo.ets | 133 @State idx: number = 0 141 if (this.idx < tasksCount - screenCount) 142 this.idx++ 146 if (this.idx > 0) 147 this.idx-- 155 tasks.slice(this.idx, this.idx + screenCount), 169 .onClick(() => this.idx = 0) 171 .onClick(() => this.idx = tasksCount - screenCount)
|
| /developtools/smartperf_host/trace_streamer/src/protos/types/plugins/ftrace_data/ |
| D | compaction.proto | 33 uint32 idx = 2; field 43 uint32 idx = 2; field 53 uint32 idx = 2; field 73 uint32 idx = 2; field 103 uint32 idx = 2; field
|
| /developtools/smartperf_host/trace_streamer/src/protos/types/plugins/ftrace_data/default/ |
| D | compaction.proto | 33 uint32 idx = 2; field 43 uint32 idx = 2; field 53 uint32 idx = 2; field 73 uint32 idx = 2; field 103 uint32 idx = 2; field
|
| /developtools/profiler/protos/types/plugins/ftrace_data/default/ |
| D | compaction.proto | 33 uint32 idx = 2; field 43 uint32 idx = 2; field 53 uint32 idx = 2; field 73 uint32 idx = 2; field 103 uint32 idx = 2; field
|
| /developtools/ace_js2bundle/ace-loader/test/lite/testcase/pages/forDirective/ |
| D | forDirective.hml | 4 <text>{{$idx}}.{{$item.name}}</text> 9 <div for="personItem in list" onclick="test($idx)"> 10 <text>{{$idx}}-{{personItem.name}}--{{personItem.age}}</text>
|
| /developtools/ace_js2bundle/ace-loader/test/card/testError/pages/for/ |
| D | for.hml | 7 <text>{{$idx}}.{{$item.name}}</text> 10 <text>{{$idx}}.{{value.name}}</text>
|
| /developtools/ace_js2bundle/ace-loader/test/rich/testcase/pages/forDirective/ |
| D | forDirective.hml | 4 <text>{{$idx}}.{{$item.name}}</text> 9 <div for="personItem in list" onclick="test($idx)"> 10 <text>{{$idx}}-{{personItem.name}}--{{personItem.age}}</text>
|