docs: update docs for microbenchmarks (#37140)

Update docs in the micro benchmarks to include:
* How to run with no turbo inlining
* Where to find the profiles in the DevTools
* Best way to debug benchmarks (using the profile_in_browser rather than --inspect-brk)

PR Close #37140
This commit is contained in:
Andrew Scott 2020-05-15 12:48:27 -07:00 committed by Kara Erickson
parent 59e7203a40
commit 267f844811
2 changed files with 7 additions and 1 deletions

View File

@ -80,5 +80,7 @@ To profile, append `_profile` to the target name and attach a debugger via chrom
To interactively edit/rerun benchmarks use `ibazel` instead of `bazel`.
To debug
- Follow the directions in `profile_in_browser.html`
OR
- `yarn bazel build --config=ivy //packages/core/test/render3/perf:noop_change_detection`
- `node --inspect-brk bazel-out/darwin-fastbuild/bin/packages/core/test/render3/perf/noop_change_detection.min_debug.es2015.js`

View File

@ -8,7 +8,11 @@
<ol>
<li>Build the benchmark using <tt>yarn bazel build //packages/core/test/render3/perf:${BENCHMARK}.min_debug.es2015.js --config=ivy</tt></li>
<li>Open this file using the <tt>file://</tt> protocol and add <tt>?benchmark=BENCHMARK</tt> to the URL.</li>
<li>Open debug console for details</li>
<li>
Note: You should likely run this in an incognito browser with the "no-turbo-inlining" flag.<br />
On Chrome, the command would be <code>/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome -incognito --js-flags="--no-turbo-inlining"</code>
</li>
<li>Open debug console for details. Benchmark profiles are available in the "JavaScript Profiler" tab of Chrome DevTools.</li>
</ol>
</body>
</html>