skia2/infra/bots/assets/text_blob_traces/README.md
Hal Canary 60e7962ee9 Upload text blob traces as assets for the bots
Change-Id: I611cd923f21e73d6393678ceeb308626da2498a4
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/250816
Commit-Queue: Hal Canary <halcanary@google.com>
Reviewed-by: Herb Derby <herb@google.com>
2019-10-25 14:04:50 +00:00

1.0 KiB

Text Blob Traces

Create

Download and build Chromium as usual, but add the line

#define SK_CAPTURE_DRAW_TEXT_BLOB

to the top of third_party/skia/src/core/SkRemoteGlyphCache.h. Run chrome --no-sandbox URL Trace files will be written to the current working directory. Use blob_cache_sim to check the contents of the trace.

Upload

To upload a new version of the assets, first place the new version in the directory text_blob_traces, then execute:

infra/bots/assets/assets.py upload -t text_blob_traces text_blob_traces

Then commit the file infra/bots/assets/text_blob_traces/VERSION

Download

Execute:

infra/bots/assets/assets.py download -t text_blob_traces text_blob_traces

Run Bench and Simulator

tools/git-sync-deps
bin/gn gen out/release --args='is_debug=false'
ninja -C out/release nanobench blob_cache_sim

out/release/nanobench -m SkDiffBench --texttraces text_blob_traces -q

out/release/blob_cache_sim text_blob_traces/*