Name | Date | Size | |
---|---|---|---|
.. | 02-Jul-2015 | 4 KiB | |
Android.mk | 02-Jul-2015 | 15.2 KiB | |
DM.cpp | 02-Jul-2015 | 10.4 KiB | |
DMBenchTask.cpp | 02-Jul-2015 | 2.7 KiB | |
DMBenchTask.h | 02-Jul-2015 | 1.7 KiB | |
DMCpuGMTask.cpp | 02-Jul-2015 | 2.1 KiB | |
DMCpuGMTask.h | 02-Jul-2015 | 1 KiB | |
DMExpectations.h | 02-Jul-2015 | 1.2 KiB | |
DMExpectationsTask.cpp | 02-Jul-2015 | 547 | |
DMExpectationsTask.h | 02-Jul-2015 | 772 | |
DMGpuGMTask.cpp | 02-Jul-2015 | 1.7 KiB | |
DMGpuGMTask.h | 02-Jul-2015 | 1 KiB | |
DMGpuSupport.h | 02-Jul-2015 | 1.5 KiB | |
DMPDFRasterizeTask.cpp | 02-Jul-2015 | 897 | |
DMPDFRasterizeTask.h | 02-Jul-2015 | 942 | |
DMPDFTask.cpp | 02-Jul-2015 | 2.9 KiB | |
DMPDFTask.h | 02-Jul-2015 | 1.1 KiB | |
DMPipeTask.cpp | 02-Jul-2015 | 2.3 KiB | |
DMPipeTask.h | 02-Jul-2015 | 1 KiB | |
DMQuiltTask.cpp | 02-Jul-2015 | 2 KiB | |
DMQuiltTask.h | 02-Jul-2015 | 901 | |
DMRecordTask.cpp | 02-Jul-2015 | 1.6 KiB | |
DMRecordTask.h | 02-Jul-2015 | 937 | |
DMReplayTask.cpp | 02-Jul-2015 | 1.4 KiB | |
DMReplayTask.h | 02-Jul-2015 | 1,006 | |
DMReporter.cpp | 02-Jul-2015 | 1.2 KiB | |
DMReporter.h | 02-Jul-2015 | 839 | |
DMSerializeTask.cpp | 02-Jul-2015 | 1.2 KiB | |
DMSerializeTask.h | 02-Jul-2015 | 753 | |
DMSKPTask.cpp | 02-Jul-2015 | 791 | |
DMSKPTask.h | 02-Jul-2015 | 686 | |
DMTask.cpp | 02-Jul-2015 | 2.3 KiB | |
DMTask.h | 02-Jul-2015 | 1.7 KiB | |
DMTaskRunner.cpp | 02-Jul-2015 | 734 | |
DMTaskRunner.h | 02-Jul-2015 | 719 | |
DMTestTask.cpp | 02-Jul-2015 | 1.9 KiB | |
DMTestTask.h | 02-Jul-2015 | 1.5 KiB | |
DMUtil.cpp | 02-Jul-2015 | 3.2 KiB | |
DMUtil.h | 02-Jul-2015 | 1.2 KiB | |
DMWriteTask.cpp | 02-Jul-2015 | 6.5 KiB | |
DMWriteTask.h | 02-Jul-2015 | 1.3 KiB | |
README | 02-Jul-2015 | 1 KiB |
README
1DM is like GM, but multithreaded. It doesn't do everything GM does. 2 3DM's design is based around Tasks and a TaskRunner. 4 5A Task represents an independent unit of work that might fail. We make a task 6for each GM/configuration pair we want to run. Tasks can kick off new tasks 7themselves. For example, a CpuTask can kick off a ReplayTask to make sure 8recording and playing back an SkPicture gives the same result as direct 9rendering. 10 11The TaskRunner runs all tasks on one of two threadpools, whose sizes are 12configurable by --cpuThreads and --gpuThreads. Ideally we'd run these on a 13single threadpool but it can swamp the GPU if we shove too much work into it at 14once. --cpuThreads defaults to the number of cores on the machine. 15--gpuThreads defaults to 1, but you may find 2 or 4 runs a little faster. 16 17So the main flow of DM is: 18 19 for each GM: 20 for each configuration: 21 kick off a new task 22 < tasks run, maybe fail, and maybe kick off new tasks > 23 wait for all tasks to finish 24 report failures 25 26