-
Notifications
You must be signed in to change notification settings - Fork 1
Fix EPUB #116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix EPUB #116
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -796,7 +796,10 @@ an interactive flame graph visualization:: | |
| The flame graph visualization shows call stacks as nested rectangles, with | ||
| width proportional to time spent. The sidebar displays runtime statistics, | ||
| GIL metrics, and hotspot functions. | ||
| :download:`Try the interactive example </_static/tachyon-example-flamegraph.html>`. | ||
|
|
||
| .. only:: html | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This tells Sphinx to only include this link for the HTML build. So not for EPUB or any other builders like plaintext. We don't do PDF, but others might build that. Unfortunately, it seems Sphinx only supports this at the top-level, which means the following link isn't indented like the figure text above. And the text is now a separate paragraph rather than part of the figure text. |
||
|
|
||
| `Try the interactive example <../_static/tachyon-example-flamegraph.html>`__. | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
|
||
| If no output file is specified, the profiler generates a filename based on | ||
| the process ID (for example, ``flamegraph.12345.html``). | ||
|
|
@@ -952,7 +955,10 @@ can be expanded to show which bytecode instructions consumed time: | |
| Expanding a hot line reveals the bytecode instructions executed, including | ||
| specialized variants. The panel shows sample counts per instruction and the | ||
| overall specialization percentage for the line. | ||
| :download:`Try the interactive example </_static/tachyon-example-heatmap.html>`. | ||
|
|
||
| .. only:: html | ||
|
|
||
| `Try the interactive example <../_static/tachyon-example-heatmap.html>`__. | ||
|
|
||
| Heatmaps are especially useful when you know which file contains a performance | ||
| issue but need to identify the specific lines. Many developers prefer this | ||
|
|
||


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need to include the examples for the EPUB build, so exclude them.