diff options
author | 2017-02-13 17:12:57 +0000 | |
---|---|---|
committer | 2017-02-14 14:19:07 +0000 | |
commit | c1641b8f953120dc04ac562b1529e8b0d775da25 (patch) | |
tree | 812f243ffcbe97a155ca6ddddbdfad9b0c5d00ac /site | |
parent | 3df88468917217f486ab14ef411d8c723a86f362 (diff) |
Doc: mention profiling and specification.
Also clean up the rest of the page.
--
PiperOrigin-RevId: 147353770
MOS_MIGRATED_REVID=147353770
Diffstat (limited to 'site')
-rw-r--r-- | site/versions/master/docs/skylark/index.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/site/versions/master/docs/skylark/index.md b/site/versions/master/docs/skylark/index.md index dc336c99da..7b9742ae91 100644 --- a/site/versions/master/docs/skylark/index.md +++ b/site/versions/master/docs/skylark/index.md @@ -15,3 +15,12 @@ Read the [concepts](concepts.md) behind Skylark and try the [standard library](lib/globals.html). --> + +## How can I profile my code? + +```shell +$ bazel build --nobuild --profile=/tmp/prof //path/to:target +$ bazel analyze-profile /tmp/prof --html --html_details +``` + +Then, open the generated HTML file (`/tmp/prof.html` in the example). |