-
-
Notifications
You must be signed in to change notification settings - Fork 409
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
Add SnakeViz profiling example #1657
Add SnakeViz profiling example #1657
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Before a pull request is accepted, it must meet the following criteria:
|
How it will look upon merge. If Dhruv's PR #1633 is merged, then the long output from Cell 2 will dissapear. https://kevincawley.github.io/tardis/branch/snakeviz_notebook/io/output/profiling_example.html |
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.
Looks good, can the snakeviz image include the table?
By the table do you mean the cProfile information? I was unable to get it to due to constraints on my virtual box with taxing pictures. I chose to prioritize the visualization of the data as I had to choose one. |
Codecov Report
@@ Coverage Diff @@
## master #1657 +/- ##
=======================================
Coverage 61.93% 61.93%
=======================================
Files 62 62
Lines 5729 5729
=======================================
Hits 3548 3548
Misses 2181 2181 Continue to review full report at Codecov.
|
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.
Can you commit the notebook with cells not executed?
Before a pull request is accepted, it must meet the following criteria:
|
I could try, but that would be another commit. Are you fine w/ that? |
Yeah. It is important that notebooks are committed without any output. |
I feel like that should be put somewhere. |
ae94374
to
eab9a17
Compare
Do not merge until I have gotten rid of some of these commits, thanks. |
@KevinCawley your latest doc preview action failed https://github.com/KevinCawley/tardis/actions/runs/947585168 |
It should be. I am going to put it somewhere in one of my upcoming PRs. |
I am able to build locally. I think the error comes from SnakeViz not being downloaded by the TARDIS env, so the user must first install it. I will add that to the notebook, but will this affect the docs? |
cae5db5
to
7dd6fd3
Compare
The error stems from SnakeViz not being inside of the TARDIS environment. |
It appears that |
Yes. There is nothing for it to display, but the white space still shows up. |
607ad74
to
f684877
Compare
5a0b64f
to
54cd796
Compare
* Snakeviz notebook * Modify env file * [build docs] * [Build docs] Note that the current whitespace is unfortunate but meeehhh
This is a notebook that shows a sample output from SnakeViz.
Description
I made a notebook that runs SnakeViz on run_tardis('tardis_example.yml'). While the HTML cannot be accurately displayed inline, a PNG of the output is displayed below. There is text for explanation for each cell.
Motivation and context
Shows an example of how to profile TARDIS.
How has this been tested?
Examples
Type of change
Checklist