aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--site/versions/master/docs/skylark/index.md9
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).