rust/src/doc
Jubilee 6c1768e66c
Rollup merge of #136924 - Kobzol:bootstrap-tracing, r=jieyouxu
Add profiling of bootstrap commands using Chrome events

Since we now have support for tracing in bootstrap, and the execution of most commands is centralized within a few functions, it's quite trivial to also trace command execution, and visualize it using the Chrome profiler. This can be helpful both to profile what takes time in bootstrap and also to get a visual idea of what happens in a given bootstrap invocation (since the execution of external commands is usually the most interesting thing).

This is how it looks:
![image](https://github.com/user-attachments/assets/3351489e-3a0f-4729-9082-5bf40c586d4b)

I first tried to use [tracing-flame](https://github.com/tokio-rs/tracing/tree/master/tracing-flame), but the output wasn't very useful, because the event/stackframe names were bootstrap code locations, instead of the command contents.

r? ``@jieyouxu``
2025-02-13 21:37:51 -08:00
..
book@d4d2c18cbd Update books 2025-02-12 19:24:48 +01:00
edition-guide@8dbdda7cae Update books 2025-02-10 18:00:41 +01:00
embedded-book@0b8219ac23 Update books 2025-02-10 18:00:41 +01:00
man Update rustc man page to match rustc --help 2022-08-01 22:03:18 +00:00
nomicon@336f75835a Update books 2025-02-03 12:22:15 -05:00
reference@6195dbd70f Update books 2025-02-12 19:24:48 +01:00
rust-by-example@66543bbc5b Update books 2025-02-10 18:00:41 +01:00
rustc Make -O mean -C opt-level=3 2025-02-13 19:47:55 +00:00
rustc-dev-guide Rollup merge of #136924 - Kobzol:bootstrap-tracing, r=jieyouxu 2025-02-13 21:37:51 -08:00
rustdoc rustdoc-book: Clean up section on --output-format 2025-02-01 21:55:50 +00:00
style-guide Revert "[style 2024] Combine all last arg delimited exprs" 2025-01-30 18:08:45 +00:00
unstable-book Rollup merge of #136217 - taiki-e:csky-asm-flags, r=Amanieu 2025-02-12 20:09:58 -05:00
complement-design-faq.md
complement-lang-faq.md
complement-project-faq.md
favicon.inc doc: no shortcut in rel="icon" 2022-01-28 13:42:48 +01:00
footer.inc avoid reuse tripping over copyright notices 2023-03-09 12:24:43 +01:00
full-toc.inc
grammar.md Remove legacy grammar 2019-09-30 07:46:10 +02:00
guide-crates.md
guide-error-handling.md Convert old doc links to current edition 2019-02-13 14:39:25 +00:00
guide-ffi.md
guide-macros.md
guide-ownership.md Convert old doc links to current edition 2019-02-13 14:39:25 +00:00
guide-plugins.md Remove support for compiler plugins. 2023-11-04 08:50:46 +11:00
guide-pointers.md Convert old doc links to current edition 2019-02-13 14:39:25 +00:00
guide-strings.md
guide-tasks.md
guide-testing.md Convert old doc links to current edition 2019-02-13 14:39:25 +00:00
guide-unsafe.md
guide.md
index.md doc: add release notes to standalone doc bundle 2023-11-13 16:00:31 -07:00
intro.md
not_found.md rustdoc: consistentify #TOC and #ModNav to lowercase 2024-08-20 16:51:40 -07:00
redirect.inc doc: no shortcut in rel="icon" 2022-01-28 13:42:48 +01:00
reference.md Update reference.md 2021-07-10 19:51:36 +02:00
robots.txt Block version-specific docs from search engines 2020-03-14 02:29:35 +00:00
rust.css Fix heading anchors in doc pages. 2024-03-18 09:13:18 -07:00
rust.md
rustdoc.md
tutorial.md Update tutorial.md 2018-05-17 12:25:24 -07:00
version_info.html.template