1cb93a386Sopenharmony_ciText Blob Traces 2cb93a386Sopenharmony_ci================ 3cb93a386Sopenharmony_ci 4cb93a386Sopenharmony_ciCreate 5cb93a386Sopenharmony_ci------ 6cb93a386Sopenharmony_ci 7cb93a386Sopenharmony_ciDownload and build Chromium as usual, but add the line 8cb93a386Sopenharmony_ci 9cb93a386Sopenharmony_ci #define SK_CAPTURE_DRAW_TEXT_BLOB 10cb93a386Sopenharmony_ci 11cb93a386Sopenharmony_cito the top of `third_party/skia/src/core/SkRemoteGlyphCache.h`. 12cb93a386Sopenharmony_ciRun `chrome --no-sandbox URL` Trace files will be written to the current 13cb93a386Sopenharmony_ciworking directory. Use `blob_cache_sim` to check the contents of the trace. 14cb93a386Sopenharmony_ci 15cb93a386Sopenharmony_ciUpload 16cb93a386Sopenharmony_ci------ 17cb93a386Sopenharmony_ci 18cb93a386Sopenharmony_ciTo upload a new version of the assets, first place the new version in the 19cb93a386Sopenharmony_cidirectory `text_blob_traces`, then execute: 20cb93a386Sopenharmony_ci 21cb93a386Sopenharmony_ci infra/bots/assets/assets.py upload -t text_blob_traces text_blob_traces 22cb93a386Sopenharmony_ci 23cb93a386Sopenharmony_ciThen commit the file `infra/bots/assets/text_blob_traces/VERSION` 24cb93a386Sopenharmony_ci 25cb93a386Sopenharmony_ciDownload 26cb93a386Sopenharmony_ci-------- 27cb93a386Sopenharmony_ci 28cb93a386Sopenharmony_ciExecute: 29cb93a386Sopenharmony_ci 30cb93a386Sopenharmony_ci infra/bots/assets/assets.py download -t text_blob_traces text_blob_traces 31cb93a386Sopenharmony_ci 32cb93a386Sopenharmony_ciRun Bench and Simulator 33cb93a386Sopenharmony_ci----------------------- 34cb93a386Sopenharmony_ci 35cb93a386Sopenharmony_ci tools/git-sync-deps 36cb93a386Sopenharmony_ci bin/gn gen out/release --args='is_debug=false' 37cb93a386Sopenharmony_ci ninja -C out/release nanobench blob_cache_sim 38cb93a386Sopenharmony_ci 39cb93a386Sopenharmony_ci out/release/nanobench -m SkDiffBench --texttraces text_blob_traces -q 40cb93a386Sopenharmony_ci 41cb93a386Sopenharmony_ci out/release/blob_cache_sim text_blob_traces/* 42