| 1 |
[ |
| 2 |
{ |
| 3 |
"cmd": [ |
| 4 |
"vpython3", |
| 5 |
"-u", |
| 6 |
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| 7 |
"--json-output", |
| 8 |
"/path/to/tmp/json", |
| 9 |
"listdir", |
| 10 |
"[START_DIR]/lottie-samples" |
| 11 |
], |
| 12 |
"infra_step": true, |
| 13 |
"name": "list lottie files", |
| 14 |
"~followup_annotations": [ |
| 15 |
"@@@STEP_LOG_LINE@listdir@[START_DIR]/lottie-samples/LICENSE@@@", |
| 16 |
"@@@STEP_LOG_LINE@listdir@[START_DIR]/lottie-samples/lottie1.json@@@", |
| 17 |
"@@@STEP_LOG_LINE@listdir@[START_DIR]/lottie-samples/lottie2.json@@@", |
| 18 |
"@@@STEP_LOG_LINE@listdir@[START_DIR]/lottie-samples/lottie3.json@@@", |
| 19 |
"@@@STEP_LOG_END@listdir@@@" |
| 20 |
] |
| 21 |
}, |
| 22 |
{ |
| 23 |
"cmd": [ |
| 24 |
"npm", |
| 25 |
"install" |
| 26 |
], |
| 27 |
"cwd": "[START_DIR]/skia/tools/lottie-web-perf", |
| 28 |
"env_prefixes": { |
| 29 |
"PATH": [ |
| 30 |
"[START_DIR]/node/node/bin" |
| 31 |
] |
| 32 |
}, |
| 33 |
"name": "npm install" |
| 34 |
}, |
| 35 |
{ |
| 36 |
"cmd": [ |
| 37 |
"[START_DIR]/node/node/bin/node", |
| 38 |
"[START_DIR]/skia/tools/lottie-web-perf/lottie-web-perf.js", |
| 39 |
"--backend", |
| 40 |
"canvas", |
| 41 |
"--input", |
| 42 |
"[START_DIR]/lottie-samples/lottie1.json", |
| 43 |
"--output", |
| 44 |
"[CLEANUP]/g3_try_tmp_1/lottie1.json" |
| 45 |
], |
| 46 |
"cwd": "[START_DIR]/skia/tools/lottie-web-perf", |
| 47 |
"env": { |
| 48 |
"CHROME_HEADLESS": "1", |
| 49 |
"DISPLAY": ":0", |
| 50 |
"PATH": "<PATH>:RECIPE_REPO[depot_tools]" |
| 51 |
}, |
| 52 |
"infra_step": true, |
| 53 |
"name": "Run perf cmd line app" |
| 54 |
}, |
| 55 |
{ |
| 56 |
"cmd": [ |
| 57 |
"python3", |
| 58 |
"RECIPE_MODULE[skia::infra]/resources/parse_lottieweb_trace.py", |
| 59 |
"[CLEANUP]/g3_try_tmp_1/lottie1.json", |
| 60 |
"/path/to/tmp/json", |
| 61 |
"lottie-web" |
| 62 |
], |
| 63 |
"env": { |
| 64 |
"CHROME_HEADLESS": "1", |
| 65 |
"PATH": "<PATH>:RECIPE_REPO[depot_tools]" |
| 66 |
}, |
| 67 |
"name": "parse lottie1.json trace", |
| 68 |
"~followup_annotations": [ |
| 69 |
"@@@[email protected]@{@@@", |
| 70 |
"@@@[email protected]@ \"frame_avg_us\": 179.71,@@@", |
| 71 |
"@@@[email protected]@ \"frame_max_us\": 218.25,@@@", |
| 72 |
"@@@[email protected]@ \"frame_min_us\": 141.17@@@", |
| 73 |
"@@@[email protected]@}@@@", |
| 74 |
"@@@[email protected]@@@" |
| 75 |
] |
| 76 |
}, |
| 77 |
{ |
| 78 |
"cmd": [ |
| 79 |
"[START_DIR]/node/node/bin/node", |
| 80 |
"[START_DIR]/skia/tools/lottie-web-perf/lottie-web-perf.js", |
| 81 |
"--backend", |
| 82 |
"canvas", |
| 83 |
"--input", |
| 84 |
"[START_DIR]/lottie-samples/lottie2.json", |
| 85 |
"--output", |
| 86 |
"[CLEANUP]/g3_try_tmp_1/lottie2.json" |
| 87 |
], |
| 88 |
"cwd": "[START_DIR]/skia/tools/lottie-web-perf", |
| 89 |
"env": { |
| 90 |
"CHROME_HEADLESS": "1", |
| 91 |
"DISPLAY": ":0", |
| 92 |
"PATH": "<PATH>:RECIPE_REPO[depot_tools]" |
| 93 |
}, |
| 94 |
"infra_step": true, |
| 95 |
"name": "Run perf cmd line app (2)" |
| 96 |
}, |
| 97 |
{ |
| 98 |
"cmd": [ |
| 99 |
"python3", |
| 100 |
"RECIPE_MODULE[skia::infra]/resources/parse_lottieweb_trace.py", |
| 101 |
"[CLEANUP]/g3_try_tmp_1/lottie2.json", |
| 102 |
"/path/to/tmp/json", |
| 103 |
"lottie-web" |
| 104 |
], |
| 105 |
"env": { |
| 106 |
"CHROME_HEADLESS": "1", |
| 107 |
"PATH": "<PATH>:RECIPE_REPO[depot_tools]" |
| 108 |
}, |
| 109 |
"name": "parse lottie2.json trace", |
| 110 |
"~followup_annotations": [ |
| 111 |
"@@@[email protected]@{@@@", |
| 112 |
"@@@[email protected]@ \"frame_avg_us\": 179.71,@@@", |
| 113 |
"@@@[email protected]@ \"frame_max_us\": 218.25,@@@", |
| 114 |
"@@@[email protected]@ \"frame_min_us\": 141.17@@@", |
| 115 |
"@@@[email protected]@}@@@", |
| 116 |
"@@@[email protected]@@@" |
| 117 |
] |
| 118 |
}, |
| 119 |
{ |
| 120 |
"cmd": [ |
| 121 |
"[START_DIR]/node/node/bin/node", |
| 122 |
"[START_DIR]/skia/tools/lottie-web-perf/lottie-web-perf.js", |
| 123 |
"--backend", |
| 124 |
"canvas", |
| 125 |
"--input", |
| 126 |
"[START_DIR]/lottie-samples/lottie3.json", |
| 127 |
"--output", |
| 128 |
"[CLEANUP]/g3_try_tmp_1/lottie3.json" |
| 129 |
], |
| 130 |
"cwd": "[START_DIR]/skia/tools/lottie-web-perf", |
| 131 |
"env": { |
| 132 |
"CHROME_HEADLESS": "1", |
| 133 |
"DISPLAY": ":0", |
| 134 |
"PATH": "<PATH>:RECIPE_REPO[depot_tools]" |
| 135 |
}, |
| 136 |
"infra_step": true, |
| 137 |
"name": "Run perf cmd line app (3)" |
| 138 |
}, |
| 139 |
{ |
| 140 |
"cmd": [ |
| 141 |
"python3", |
| 142 |
"RECIPE_MODULE[skia::infra]/resources/parse_lottieweb_trace.py", |
| 143 |
"[CLEANUP]/g3_try_tmp_1/lottie3.json", |
| 144 |
"/path/to/tmp/json", |
| 145 |
"lottie-web" |
| 146 |
], |
| 147 |
"env": { |
| 148 |
"CHROME_HEADLESS": "1", |
| 149 |
"PATH": "<PATH>:RECIPE_REPO[depot_tools]" |
| 150 |
}, |
| 151 |
"name": "parse lottie3.json trace", |
| 152 |
"~followup_annotations": [ |
| 153 |
"@@@[email protected]@{@@@", |
| 154 |
"@@@[email protected]@ \"frame_avg_us\": 179.71,@@@", |
| 155 |
"@@@[email protected]@ \"frame_max_us\": 218.25,@@@", |
| 156 |
"@@@[email protected]@ \"frame_min_us\": 141.17@@@", |
| 157 |
"@@@[email protected]@}@@@", |
| 158 |
"@@@[email protected]@@@" |
| 159 |
] |
| 160 |
}, |
| 161 |
{ |
| 162 |
"cmd": [ |
| 163 |
"python3", |
| 164 |
"RECIPE_MODULE[skia::vars]/resources/get_env_var.py", |
| 165 |
"SWARMING_BOT_ID" |
| 166 |
], |
| 167 |
"name": "get swarming bot id" |
| 168 |
}, |
| 169 |
{ |
| 170 |
"cmd": [ |
| 171 |
"python3", |
| 172 |
"RECIPE_MODULE[skia::vars]/resources/get_env_var.py", |
| 173 |
"SWARMING_TASK_ID" |
| 174 |
], |
| 175 |
"name": "get swarming task id" |
| 176 |
}, |
| 177 |
{ |
| 178 |
"cmd": [ |
| 179 |
"vpython3", |
| 180 |
"-u", |
| 181 |
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| 182 |
"--json-output", |
| 183 |
"/path/to/tmp/json", |
| 184 |
"ensure-directory", |
| 185 |
"--mode", |
| 186 |
"0o777", |
| 187 |
"[START_DIR]/[SWARM_OUT_DIR]" |
| 188 |
], |
| 189 |
"infra_step": true, |
| 190 |
"name": "makedirs perf_dir" |
| 191 |
}, |
| 192 |
{ |
| 193 |
"cmd": [ |
| 194 |
"vpython3", |
| 195 |
"-u", |
| 196 |
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| 197 |
"--json-output", |
| 198 |
"/path/to/tmp/json", |
| 199 |
"copy", |
| 200 |
"{\n \"gitHash\": \"abc123\",\n \"key\": {\n \"arch\": \"x86_64\",\n \"bench_type\": \"tracing\",\n \"compiler\": \"none\",\n \"configuration\": \"Release\",\n \"cpu_or_gpu\": \"CPU\",\n \"cpu_or_gpu_value\": \"AVX2\",\n \"extra_config\": \"LottieWeb_Canvas\",\n \"model\": \"GCE\",\n \"os\": \"Debian10\",\n \"source_type\": \"lottie-web\"\n },\n \"renderer\": \"lottie-web\",\n \"results\": {\n \"lottie1.json\": {\n \"gl\": {\n \"frame_avg_us\": 179.71,\n \"frame_max_us\": 218.25,\n \"frame_min_us\": 141.17\n }\n },\n \"lottie2.json\": {\n \"gl\": {\n \"frame_avg_us\": 179.71,\n \"frame_max_us\": 218.25,\n \"frame_min_us\": 141.17\n }\n },\n \"lottie3.json\": {\n \"gl\": {\n \"frame_avg_us\": 179.71,\n \"frame_max_us\": 218.25,\n \"frame_min_us\": 141.17\n }\n }\n },\n \"swarming_bot_id\": \"\",\n \"swarming_task_id\": \"\"\n}", |
| 201 |
"[START_DIR]/[SWARM_OUT_DIR]/perf_abc123_1337000001.json" |
| 202 |
], |
| 203 |
"infra_step": true, |
| 204 |
"name": "write output JSON", |
| 205 |
"~followup_annotations": [ |
| 206 |
"@@@STEP_LOG_LINE@perf_abc123_1337000001.json@{@@@", |
| 207 |
"@@@STEP_LOG_LINE@perf_abc123_1337000001.json@ \"gitHash\": \"abc123\",@@@", |
| 208 |
"@@@STEP_LOG_LINE@perf_abc123_1337000001.json@ \"key\": {@@@", |
| 209 |
"@@@STEP_LOG_LINE@perf_abc123_1337000001.json@ \"arch\": \"x86_64\",@@@", |
| 210 |
"@@@STEP_LOG_LINE@perf_abc123_1337000001.json@ \"bench_type\": \"tracing\",@@@", |
| 211 |
"@@@STEP_LOG_LINE@perf_abc123_1337000001.json@ \"compiler\": \"none\",@@@", |
| 212 |
"@@@STEP_LOG_LINE@perf_abc123_1337000001.json@ \"configuration\": \"Release\",@@@", |
| 213 |
"@@@STEP_LOG_LINE@perf_abc123_1337000001.json@ \"cpu_or_gpu\": \"CPU\",@@@", |
| 214 |
"@@@STEP_LOG_LINE@perf_abc123_1337000001.json@ \"cpu_or_gpu_value\": \"AVX2\",@@@", |
| 215 |
"@@@STEP_LOG_LINE@perf_abc123_1337000001.json@ \"extra_config\": \"LottieWeb_Canvas\",@@@", |
| 216 |
"@@@STEP_LOG_LINE@perf_abc123_1337000001.json@ \"model\": \"GCE\",@@@", |
| 217 |
"@@@STEP_LOG_LINE@perf_abc123_1337000001.json@ \"os\": \"Debian10\",@@@", |
| 218 |
"@@@STEP_LOG_LINE@perf_abc123_1337000001.json@ \"source_type\": \"lottie-web\"@@@", |
| 219 |
"@@@STEP_LOG_LINE@perf_abc123_1337000001.json@ },@@@", |
| 220 |
"@@@STEP_LOG_LINE@perf_abc123_1337000001.json@ \"renderer\": \"lottie-web\",@@@", |
| 221 |
"@@@STEP_LOG_LINE@perf_abc123_1337000001.json@ \"results\": {@@@", |
| 222 |
"@@@STEP_LOG_LINE@perf_abc123_1337000001.json@ \"lottie1.json\": {@@@", |
| 223 |
"@@@STEP_LOG_LINE@perf_abc123_1337000001.json@ \"gl\": {@@@", |
| 224 |
"@@@STEP_LOG_LINE@perf_abc123_1337000001.json@ \"frame_avg_us\": 179.71,@@@", |
| 225 |
"@@@STEP_LOG_LINE@perf_abc123_1337000001.json@ \"frame_max_us\": 218.25,@@@", |
| 226 |
"@@@STEP_LOG_LINE@perf_abc123_1337000001.json@ \"frame_min_us\": 141.17@@@", |
| 227 |
"@@@STEP_LOG_LINE@perf_abc123_1337000001.json@ }@@@", |
| 228 |
"@@@STEP_LOG_LINE@perf_abc123_1337000001.json@ },@@@", |
| 229 |
"@@@STEP_LOG_LINE@perf_abc123_1337000001.json@ \"lottie2.json\": {@@@", |
| 230 |
"@@@STEP_LOG_LINE@perf_abc123_1337000001.json@ \"gl\": {@@@", |
| 231 |
"@@@STEP_LOG_LINE@perf_abc123_1337000001.json@ \"frame_avg_us\": 179.71,@@@", |
| 232 |
"@@@STEP_LOG_LINE@perf_abc123_1337000001.json@ \"frame_max_us\": 218.25,@@@", |
| 233 |
"@@@STEP_LOG_LINE@perf_abc123_1337000001.json@ \"frame_min_us\": 141.17@@@", |
| 234 |
"@@@STEP_LOG_LINE@perf_abc123_1337000001.json@ }@@@", |
| 235 |
"@@@STEP_LOG_LINE@perf_abc123_1337000001.json@ },@@@", |
| 236 |
"@@@STEP_LOG_LINE@perf_abc123_1337000001.json@ \"lottie3.json\": {@@@", |
| 237 |
"@@@STEP_LOG_LINE@perf_abc123_1337000001.json@ \"gl\": {@@@", |
| 238 |
"@@@STEP_LOG_LINE@perf_abc123_1337000001.json@ \"frame_avg_us\": 179.71,@@@", |
| 239 |
"@@@STEP_LOG_LINE@perf_abc123_1337000001.json@ \"frame_max_us\": 218.25,@@@", |
| 240 |
"@@@STEP_LOG_LINE@perf_abc123_1337000001.json@ \"frame_min_us\": 141.17@@@", |
| 241 |
"@@@STEP_LOG_LINE@perf_abc123_1337000001.json@ }@@@", |
| 242 |
"@@@STEP_LOG_LINE@perf_abc123_1337000001.json@ }@@@", |
| 243 |
"@@@STEP_LOG_LINE@perf_abc123_1337000001.json@ },@@@", |
| 244 |
"@@@STEP_LOG_LINE@perf_abc123_1337000001.json@ \"swarming_bot_id\": \"\",@@@", |
| 245 |
"@@@STEP_LOG_LINE@perf_abc123_1337000001.json@ \"swarming_task_id\": \"\"@@@", |
| 246 |
"@@@STEP_LOG_LINE@perf_abc123_1337000001.json@}@@@", |
| 247 |
"@@@STEP_LOG_END@perf_abc123_1337000001.json@@@" |
| 248 |
] |
| 249 |
}, |
| 250 |
{ |
| 251 |
"name": "$result" |
| 252 |
} |
| 253 |
] |