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