-
-
Notifications
You must be signed in to change notification settings - Fork 32.9k
gh-135953: Add flamegraph reporter to sampling profiler #138304
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
Closed
+1,446
−6
Closed
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
f82c991
Remove unused variables in sample profiler
lkollar e7ff0d1
Add HTML flamegraph to sampling profiler
lkollar a9b1213
Avoid displaying popup outside viewport
lkollar e1c56ee
fixup! Add HTML flamegraph to sampling profiler
lkollar 3a64277
Vendor D3 files and Python logo
lkollar e5139c7
Update Makefile.pre.in
lkollar 37134d8
Move licenses into license.rst
lkollar 09d04fa
Update license.rst
lkollar 3799731
Update license.rst
lkollar 4f10915
fixup! Update license.rst
pablogsal fb48a88
fixup! fixup! Update license.rst
pablogsal 8882b27
fixup! fixup! fixup! Update license.rst
pablogsal 738bd0a
Update Lib/test/test_profiling/test_sampling_profiler.py
lkollar 4e63501
Shorten lines in flamegraph.js
lkollar eef995d
Watch for readystate before initialising flamegraph UI
lkollar 97474d6
Add .min.js to .gitattributes
lkollar 8291df0
Break up large functions in flamegraph.js
lkollar a780144
Use importlib.resources to locate flamegraph assets
lkollar 9d3956d
fixup! Update Lib/test/test_profiling/test_sampling_profiler.py
lkollar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
Lib/profiling/sampling/_assets/python-logo-only.png
1 change: 1 addition & 0 deletions
Lib/profiling/sampling/_vendor/d3-flame-graph/4.1.3/d3-flamegraph-tooltip.min.js
Oops, something went wrong.
46 changes: 46 additions & 0 deletions
Lib/profiling/sampling/_vendor/d3-flame-graph/4.1.3/d3-flamegraph.css
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
.d3-flame-graph rect { | ||
stroke: #EEEEEE; | ||
fill-opacity: .8; | ||
} | ||
|
||
.d3-flame-graph rect:hover { | ||
stroke: #474747; | ||
stroke-width: 0.5; | ||
cursor: pointer; | ||
} | ||
|
||
.d3-flame-graph-label { | ||
pointer-events: none; | ||
white-space: nowrap; | ||
text-overflow: ellipsis; | ||
overflow: hidden; | ||
font-size: 12px; | ||
font-family: Verdana; | ||
margin-left: 4px; | ||
margin-right: 4px; | ||
line-height: 1.5; | ||
padding: 0 0 0; | ||
font-weight: 400; | ||
color: black; | ||
text-align: left; | ||
} | ||
|
||
.d3-flame-graph .fade { | ||
opacity: 0.6 !important; | ||
} | ||
|
||
.d3-flame-graph .title { | ||
font-size: 20px; | ||
font-family: Verdana; | ||
} | ||
|
||
.d3-flame-graph-tip { | ||
background-color: black; | ||
border: none; | ||
border-radius: 3px; | ||
padding: 5px 10px 5px 10px; | ||
min-width: 250px; | ||
text-align: left; | ||
color: white; | ||
z-index: 10; | ||
} |
1 change: 1 addition & 0 deletions
Lib/profiling/sampling/_vendor/d3-flame-graph/4.1.3/d3-flamegraph.min.js
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
Lib/profiling/sampling/_vendor/d3/7.8.5/d3.min.js
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.