Searched refs:threadNum (Results 1 – 8 of 8) sorted by relevance
| /developtools/profiler/hiebpf/test/ |
| D | hiebpf_test_demo.cpp | 136 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/ |
| D | hook_test.cpp | 170 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 …]
|
| D | perf_test_data.cpp | 114 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()
|
| D | statistics_test.cpp | 290 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()
|
| D | malloc_test.cpp | 514 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()
|
| D | hook_test.c | 496 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/ |
| D | ut_runtime.cpp | 29 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/ |
| D | quickstart_taskpool.md | 37 如上图,H:threadNum,H:runningThreadNum,H:idleThreadNum,H:timeoutThreadNum是线程池里线程状态统计,H:taskNum是队列任务数。
|