Home
last modified time | relevance | path

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

/bionic/benchmarks/
Dmalloc_rss_benchmark.cpp61 void ThreadTask(int id, size_t allocSize) { in ThreadTask() argument
67 const size_t maxCounts = kMaxBytes / allocSize; in ThreadTask()
72 MemPool[id][i] = malloc(allocSize); in ThreadTask()
79 dirtyMem(MemPool[id][i], allocSize); in ThreadTask()
95 MemPool[id][i] = malloc(allocSize); in ThreadTask()
96 dirtyMem(MemPool[id][i], allocSize); in ThreadTask()
100 void StressSizeClass(size_t numThreads, size_t allocSize) { in StressSizeClass() argument
106 for (size_t i = 0; i < numThreads; ++i) threads[i] = new std::thread(ThreadTask, i, allocSize); in StressSizeClass()
150 size_t allocSize = atoi(argv[2]); in main() local
152 if (numThreads == 0 || allocSize == 0) { in main()
[all …]