1 2 clips = 0 3 draws = 0 4 clipPaths = 0 5 drawPaths = 0 6 swClipPaths = 0 7 swDrawPaths = 0 8 9 skpsTotal = 0 10 skpsWithPath = 0 11 skpsWithSWPath = 0 12 13 dofile("/tmp/lua-output") 14 15 io.write("Number of clips: ", clips, "\n"); 16 io.write("Number of draws: ", draws, "\n"); 17 io.write("Number of clipped paths: ", clipPaths, "\n"); 18 io.write("Number of drawn paths: ", drawPaths, "\n"); 19 io.write("Number of clipped software paths: ", swClipPaths, "\n"); 20 io.write("Number of drawn software paths: ", swDrawPaths, "\n"); 21 22 io.write("\n") 23 24 io.write("Number of SKPs total: ", skpsTotal, "\n") 25 io.write("Number of SKPs that draw paths: ", skpsWithPath, "\n") 26 io.write("Number of SKPs that draw SW paths: ", skpsWithSWPath, "\n") 27 28 io.write("\n") 29 io.write("\n") 30 31 totalSWPaths = swDrawPaths + swClipPaths 32 totalPaths = drawPaths + clipPaths 33 34 io.write("Percentage of paths needing software: ", (100*(totalSWPaths / totalPaths)), "\n") 35 io.write("Percentage of draws/clips needing software: ", 36 (100*(totalSWPaths / (draws + clips))), "\n") 37 38 io.write("\n") 39 40 io.write("Percentage of SKPs that draw paths: ", (100*(skpsWithPath / skpsTotal)), "\n") 41 io.write("Percentage of SKPs that draw SW paths: ", (100*(skpsWithSWPath / skpsTotal)), "\n") 42