Home
last modified time | relevance | path

Searched refs:idx (Results 1 – 25 of 82) sorted by relevance

1234

/developtools/profiler/device/plugins/native_hook/test/
Dperf_test_data.cpp39 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 …]
Dhook_test.cpp105 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 …]
Dmalloc_test.cpp525 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()
Dhook_test.c512 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()
Dstatistics_test.cpp315 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/
Dmain.cpp52 size_t idx = 0; in ParseCommand() local
53 while (idx < args.size()) { in ParseCommand()
54 if (args[idx] == "-o") { in ParseCommand()
55 hookData.fileName = args[idx + 1].c_str(); in ParseCommand()
56 } else if (args[idx] == "-p") { in ParseCommand()
57 hookData.pid = std::stoi(args[idx + 1], nullptr); in ParseCommand()
58 if (std::to_string(hookData.pid) != args[idx + 1]) { in ParseCommand()
61 if (!ProcessExist(args[idx + 1])) { in ParseCommand()
65 } else if (args[idx] == "-n") { in ParseCommand()
66 hookData.processName = args[idx + 1]; in ParseCommand()
[all …]
Dstack_preprocess.cpp215 for (uint8_t idx = 0; idx < rawData->fpDepth ; ++idx) { in TakeResults() local
216 if (fpIp[idx] == 0) { in TakeResults()
219 callFrames_.emplace_back(fpIp[idx]); in TakeResults()
305 inline void StackPreprocess::FillOfflineCallStack(std::vector<CallFrame>& callFrames, size_t idx) in FillOfflineCallStack() argument
307 for (; idx < callFrames.size(); ++idx) { in FillOfflineCallStack()
308 callStack_.push_back(callFrames[idx].ip_); in FillOfflineCallStack()
313 BatchNativeHookData& batchNativeHookData, size_t idx) in FillCallStack() argument
315 for (; idx < callFrames.size(); ++idx) { in FillCallStack()
316 ReportFrameMap(callFrames[idx], batchNativeHookData); in FillCallStack()
318 callStack_.push_back(callFrames[idx].callFrameId_); in FillCallStack()
[all …]
/developtools/profiler/hiebpf/test/
Dhiebpf_test_demo.cpp107 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/
DTabPaneFilter.ts141 this.shadowRoot!.querySelectorAll<HTMLDivElement>('.mining-button').forEach((e, idx) => {
143 if (idx == 0) {
372 row.forEach((e, idx) => {
376 if (idx == 0) {
379 value: idx,
384 value: idx,
392 if (idx == 0) {
395 value: idx,
400 value: idx,
412 inputs.forEach((e: any, idx) => {
[all …]
/developtools/profiler/host/smartperf/ide/src/trace/component/trace/sheet/
DTabPaneFilter.ts141 this.shadowRoot!.querySelectorAll<HTMLDivElement>('.mining-button').forEach((e, idx) => {
143 if (idx == 0) {
372 row.forEach((e, idx) => {
376 if (idx == 0) {
379 value: idx,
384 value: idx,
392 if (idx == 0) {
395 value: idx,
400 value: idx,
412 inputs.forEach((e: any, idx) => {
[all …]
/developtools/integration_verification/tools/deps_guard/elf_file_mgr/
Delf_file_mgr.py51 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/host/smartperf/ide/src/trace/component/trace/sheet/cpu/
DTabPaneCounterSample.ts106 let idx = initCounterResultList.findIndex((a) => a.ts >= leftNs);
107 if (idx !== 0) {
109 idx == -1 ? initCounterResultList.length - 1 : idx - 1,
113 if (initCounterResultList[0].ts < leftNs && idx !== 0) initCounterResultList[0].ts = leftNs;
114 initCounterResultList.forEach((item, idx) => {
115 if (idx + 1 == initCounterResultList.length) {
118 item.time = initCounterResultList[idx + 1].ts - item.ts;
/developtools/smartperf_host/ide/src/trace/component/trace/sheet/cpu/
DTabPaneCounterSample.ts106 let idx = initCounterResultList.findIndex((a) => a.ts >= leftNs);
107 if (idx !== 0) {
109 idx == -1 ? initCounterResultList.length - 1 : idx - 1,
113 if (initCounterResultList[0].ts < leftNs && idx !== 0) initCounterResultList[0].ts = leftNs;
114 initCounterResultList.forEach((item, idx) => {
115 if (idx + 1 == initCounterResultList.length) {
118 item.time = initCounterResultList[idx + 1].ts - item.ts;
/developtools/profiler/hidebug/frameworks/native/
Dhidebug_base.c154 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/
Dlite-image2bin.js46 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/trace_streamer/src/base/
Dfilter_constraints.cpp22 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/host/smartperf/ide/src/trace/component/schedulingAnalysis/utils/
DUtils.ts20 data.forEach((item, idx) => {
22 index: idx + 1,
35 data.forEach((item, idx) => {
37 index: idx + 1,
/developtools/smartperf_host/ide/src/trace/component/schedulingAnalysis/utils/
DUtils.ts20 data.forEach((item, idx) => {
22 index: idx + 1,
35 data.forEach((item, idx) => {
37 index: idx + 1,
/developtools/profiler/host/smartperf/trace_streamer/src/base/
Dfilter_constraints.cpp22 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/
Dftrace_cpuhp_event_formatter.cpp39 msg.cpu(), msg.target(), msg.idx(), functionStr.c_str()); in __anona8d5d8340302()
42 msg.cpu(), msg.target(), msg.idx(), msg.fun()); in __anona8d5d8340302()
57 …"cpuhp_exit: cpu: %04u state: %3d step: %3d ret: %d", msg.cpu(), msg.state(), msg.idx(), msg.ret… in __anona8d5d8340502()
78 … "cpuhp_multi_enter: cpu: %04u target: %3d step: %3d (%s)", msg.cpu(), msg.target(), msg.idx(), in __anona8d5d8340702()
82 … "cpuhp_multi_enter: cpu: %04u target: %3d step: %3d (%p)", msg.cpu(), msg.target(), msg.idx(), in __anona8d5d8340702()
/developtools/profiler/device/plugins/api/src/
Dplugin_manager.cpp248 for (size_t idx = 0; idx < config.size(); ++idx) { in CreatePluginSession() local
249 HILOG_DEBUG(LOG_CORE, "%s:config->name() = %s", __func__, config[idx].name().c_str()); in CreatePluginSession()
250 auto it = pluginIds_.find(config[idx].name()); in CreatePluginSession()
256 …HILOG_INFO(LOG_CORE, "%s:index = %d, clock = %s", __func__, it->second, config[idx].clock().c_str(… in CreatePluginSession()
257 pluginModules_[it->second]->SetConfigData(config[idx].config_data()); in CreatePluginSession()
258 pluginModules_[it->second]->SetClockId(COMMON::GetClockId(config[idx].clock())); in CreatePluginSession()
279 size_t idx = 0; in StartPluginSession() local
294 if (idx > config.size()) { in StartPluginSession()
295 HILOG_WARN(LOG_CORE, "%s:idx %zu out of size %zu", __func__, idx, config.size()); in StartPluginSession()
298 auto interval = ScheduleTaskManager::ms(config[idx].sample_interval()); in StartPluginSession()
[all …]
/developtools/ace_ets2bundle/compiler/sample/pages/
Dwilldo.ets133 @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/profiler/device/plugins/native_hook/src/
Druntime_stack_range.cpp91 size_t idx = 0; in IsEmptyString() local
93 while (idx < size) { in IsEmptyString()
94 if (!isspace(static_cast<unsigned char>(str[idx])) && str[idx] != 0) { in IsEmptyString()
97 ++idx; in IsEmptyString()
/developtools/profiler/host/smartperf/trace_streamer/src/protos/types/plugins/ftrace_data/default/
Dcompaction.proto33 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/
Dcompaction.proto33 uint32 idx = 2; field
43 uint32 idx = 2; field
53 uint32 idx = 2; field
73 uint32 idx = 2; field
103 uint32 idx = 2; field

1234