Home
last modified time | relevance | path

Searched refs:threadNum (Results 1 – 8 of 8) sorted by relevance

/developtools/profiler/hiebpf/test/
Dhiebpf_test_demo.cpp136 long ThreadTimeCost(int threadNum, int writeReadTime) in ThreadTimeCost() argument
140 int args[threadNum][2]; in ThreadTimeCost()
142 if (threadNum <= 0) { in ThreadTimeCost()
147 pthread_t* thrArray = new (std::nothrow) pthread_t[threadNum]; in ThreadTimeCost()
153 for (idx = 0; idx < threadNum; ++idx) { in ThreadTimeCost()
161 for (idx = 0; idx < threadNum; ++idx) { in ThreadTimeCost()
172 int threadNum = 1; in main() local
176 threadNum = atoi(argv[1]); in main()
187 printf("Test start %d thread, read or write %d times\n", threadNum, writeReadTime); in main()
190 auto timeCost = ThreadTimeCost(threadNum, writeReadTime); in main()
/developtools/profiler/device/plugins/native_hook/test/
Dhook_test.cpp170 int ThreadTimeCost(int threadNum, int mallocTimes) in ThreadTimeCost() argument
173 if (threadNum <= 0) { in ThreadTimeCost()
177 pthread_t* thrArray = new (std::nothrow) pthread_t[threadNum]; in ThreadTimeCost()
183 for (idx = 0; idx < threadNum; ++idx) { in ThreadTimeCost()
188 for (idx = 0; idx < threadNum; ++idx) { in ThreadTimeCost()
197 pthread_t* thrArrayHook = new (std::nothrow) pthread_t[threadNum]; in ThreadTimeCost()
202 for (idx = 0; idx < threadNum; ++idx) { in ThreadTimeCost()
208 for (idx = 0; idx < threadNum; ++idx) { in ThreadTimeCost()
220 int threadNum = 1; in main() local
224 threadNum = atoi(argv[1]); in main()
[all …]
Dperf_test_data.cpp114 int threadNum = 1; in main() local
137 threadNum = atoi(argv[idx]); in main()
138 if (threadNum <= 0) { in main()
173 pthread_t* thrArray = (pthread_t*)malloc(sizeof(pthread_t) * threadNum); in main()
184 threadNum, in main()
200 for (idx = 0; idx < threadNum; ++idx) { in main()
206 for (idx = 0; idx < threadNum; ++idx) { in main()
Dstatistics_test.cpp290 int threadNum = 1; in main() local
294 threadNum = atoi(argv[1]); in main()
307 fprintf(stderr, "forNum = %d, threadNum = %d\n", forNum, threadNum); in main()
310 pthread_t* thrArray = new (std::nothrow) pthread_t[threadNum]; in main()
316 for (idx = 0; idx < threadNum; ++idx) { in main()
321 for (idx = 0; idx < threadNum; ++idx) { in main()
Dmalloc_test.cpp514 int threadNum = g_threadNum; in main() local
518 … printf("Process pid %d, Test start %d thread, malloc %d size\n", pid, threadNum, mallocSize); in main()
520 thrArrayList[type] = (pthread_t*)malloc(sizeof(pthread_t) * threadNum); in main()
526 for (idx = 0; idx < threadNum; ++idx) { in main()
537 int threadNum = g_threadNum; in main() local
541 thrArrayList[type] = (pthread_t*)malloc(sizeof(pthread_t) * threadNum); in main()
547 for (idx = 0; idx < threadNum; ++idx) { in main()
Dhook_test.c496 int threadNum = g_threadNum; in main() local
500 … printf("Process pid %d, Test start %d thread, malloc %d size\n", pid, threadNum, mallocSize); in main()
502 thrArrayList[type] = (pthread_t*)malloc(sizeof(pthread_t) * threadNum); in main()
513 for (idx = 0; idx < threadNum; ++idx) { in main()
522 int threadNum = g_threadNum; in main() local
526 thrArrayList[type] = (pthread_t*)malloc(sizeof(pthread_t) * threadNum); in main()
538 for (idx = 0; idx < threadNum; ++idx) { in main()
/developtools/hdc/src/test/
Dut_runtime.cpp29 string threadNum = std::to_string(SIZE_THREAD_POOL * 2); in Runtime() local
30 uv_os_setenv("UV_THREADPOOL_SIZE", threadNum.c_str()); in Runtime()
/developtools/smartperf_host/ide/src/doc/md/
Dquickstart_taskpool.md37 如上图,H:threadNum,H:runningThreadNum,H:idleThreadNum,H:timeoutThreadNum是线程池里线程状态统计,H:taskNum是队列任务数。