GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||
GeezerVison is showing github.com — gh-138122: Add sampling profiler visualisation to docs by lkollar · Pull Request #142772 · python/cpython Conversation
|
| .. only:: html | ||
|
|
||
| The following interactive visualization demonstrates how sampling profiling | ||
| works. Press **Play** to watch a Python program execute, and observe how the |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
See the :guilabel: role for buttons.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I tried using this but it just wraps the element in a span and has no associated styling, so the text isn't highlighted in any way. I could style it in the local CSS but this should probably get a global style rule.
The only other place where this is used is in the logging cookbook (search for "Download ZIP") which isn't styled either. Seems like a bug to me.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Include the JS and CSS files in the Sphinx extension to make sure Sphinx properly includes these when producing all output types.
Moved function colors to a lookup map and easing definitions to a module constant so they aren't recreated on each call. Cached the background element reference in DOMStackFrame instead of querying it on every hover. Chained the regex replacements in syntax highlighting into one expression. Removed the CSS color rules for specific functions since colors are now set in JS, along with a duplicate color variable and two methods that were never called.
|
@hugovk @AA-Turner could you give this a pass if you have some time? We would love your insights! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Thanks a lot for the great work @lkollar! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…142772) Co-authored-by: Pablo Galindo Salgado <[email protected]>
…142772) Co-authored-by: Pablo Galindo Salgado <[email protected]>
…142772) Co-authored-by: Pablo Galindo Salgado <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.