aboutsummaryrefslogtreecommitdiffhomepage
path: root/site
diff options
context:
space:
mode:
authorGravatar laurentlb <laurentlb@google.com>2017-12-14 06:24:48 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2017-12-14 06:26:49 -0800
commit1b66574799a242b09f88a1b0cfe47a956f17fa87 (patch)
tree6dc994440b9a4f805ebc4932750da43200363b6d /site
parentfafeadd24518ed44b5f500c1439e0bbeb7118e62 (diff)
Move profiling information from the Overview to the Optimizing page.
RELNOTES: None. PiperOrigin-RevId: 179037412
Diffstat (limited to 'site')
-rw-r--r--site/docs/skylark/concepts.md12
-rw-r--r--site/docs/skylark/performance.md11
2 files changed, 11 insertions, 12 deletions
diff --git a/site/docs/skylark/concepts.md b/site/docs/skylark/concepts.md
index 80b8981251..b7cda3433b 100644
--- a/site/docs/skylark/concepts.md
+++ b/site/docs/skylark/concepts.md
@@ -92,15 +92,3 @@ Bazel tries to be clever: it uses dependency analysis to know which files must
be loaded, which rules must be analyzed, and which actions must be executed. For
example, if a rule generates actions that we don't need for the current build,
they will not be executed.
-
-
-## Profiling the code
-
-To profile your code and analyze the performance, use the `--profile` flag:
-
-```
-$ 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).
diff --git a/site/docs/skylark/performance.md b/site/docs/skylark/performance.md
index 4538bfdb94..ac36888db8 100644
--- a/site/docs/skylark/performance.md
+++ b/site/docs/skylark/performance.md
@@ -179,6 +179,17 @@ ctx.actions.run(
)
```
+## Performance profiling
+
+To profile your code and analyze the performance, use the `--profile` flag:
+
+```
+$ 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).
+
## Memory Profiling
Bazel comes with a built-in memory profiler that can help you check your rule's