Home
last modified time | relevance | path

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

/developtools/profiler/device/plugins/native_hook/test/
Dhook_test.cpp170 int ThreadTimeCost(int threadNum, int mallocTimes) { in ThreadTimeCost() argument
172 if (threadNum <= 0) { in ThreadTimeCost()
176 pthread_t* thr_array = new (std::nothrow) pthread_t[threadNum]; in ThreadTimeCost()
182 for (idx = 0; idx < threadNum; ++idx) { in ThreadTimeCost()
187 for (idx = 0; idx < threadNum; ++idx) { in ThreadTimeCost()
196 pthread_t* thr_array_hook = new (std::nothrow) pthread_t[threadNum]; in ThreadTimeCost()
201 for (idx = 0; idx < threadNum; ++idx) { in ThreadTimeCost()
207 for (idx = 0; idx < threadNum; ++idx) { in ThreadTimeCost()
219 int threadNum = 1; in main() local
223 threadNum = atoi(argv[1]); in main()
[all …]
Dhook_test.c495 int threadNum = g_threadNum; in main() local
499 … printf("Process pid %d, Test start %d thread, malloc %d size\n", pid, threadNum, mallocSize); in main()
501 thrArrayList[type] = (pthread_t*)malloc(sizeof(pthread_t) * threadNum); in main()
512 for (idx = 0; idx < threadNum; ++idx) { in main()
521 int threadNum = g_threadNum; in main() local
525 thrArrayList[type] = (pthread_t*)malloc(sizeof(pthread_t) * threadNum); in main()
537 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()
/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()