• Home
Name Date Size #Lines LOC

..--

DM.cppD03-May-20245.6 KiB159133

DMCpuTask.cppD03-May-20241.7 KiB6151

DMCpuTask.hD03-May-20241.1 KiB4332

DMExpectations.hD03-May-20241.2 KiB4732

DMExpectationsTask.cppD03-May-2024544 2217

DMExpectationsTask.hD03-May-2024832 3121

DMGpuTask.cppD03-May-20242.1 KiB7258

DMGpuTask.hD03-May-20241.1 KiB4636

DMPipeTask.cppD03-May-20242.4 KiB8572

DMPipeTask.hD03-May-20241.1 KiB3827

DMReplayTask.cppD03-May-20241.3 KiB5343

DMReplayTask.hD03-May-20241 KiB3726

DMReporter.cppD03-May-2024851 3929

DMReporter.hD03-May-2024865 4025

DMSerializeTask.cppD03-May-20241.5 KiB5443

DMSerializeTask.hD03-May-2024813 3524

DMTask.cppD03-May-2024938 4737

DMTask.hD03-May-20241.1 KiB5129

DMTaskRunner.cppD03-May-2024700 2919

DMTaskRunner.hD03-May-2024656 2916

DMTileGridTask.cppD03-May-20242.5 KiB8164

DMTileGridTask.hD03-May-20241 KiB3726

DMUtil.cppD03-May-20241.2 KiB4334

DMUtil.hD03-May-2024802 3013

DMWriteTask.cppD03-May-20243.6 KiB11182

DMWriteTask.hD03-May-20241.1 KiB4731

READMED03-May-20241.2 KiB3525

README

1DM is like GM, but multithreaded.  It doesn't do everything GM does yet.
2
3Current approximate list of missing features:
4  --config pdf
5  --mismatchPath
6  --missingExpectationsPath
7  --writePicturePath
8
9  --deferred
10
11
12DM's design is based around Tasks and a TaskRunner.
13
14A Task represents an independent unit of work that might fail.  We make a task
15for each GM/configuration pair we want to run.  Tasks can kick off new tasks
16themselves.  For example, a CpuTask can kick off a ReplayTask to make sure
17recording and playing back an SkPicture gives the same result as direct
18rendering.
19
20The TaskRunner runs all tasks on one of two threadpools, whose sizes are
21configurable by --cpuThreads and --gpuThreads.  Ideally we'd run these on a
22single threadpool but it can swamp the GPU if we shove too much work into it at
23once.  --cpuThreads defaults to the number of cores on the machine.
24--gpuThreads defaults to 1, but you may find 2 or 4 runs a little faster.
25
26So the main flow of DM is:
27
28    for each GM:
29        for each configuration:
30            kick off a new task
31    < tasks run, maybe fail, and maybe kick off new tasks >
32    wait for all tasks to finish
33    report failures
34
35