-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Report per-MethodInstance inference timings during a single inference call, via SnoopCompile #37749
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
Merged
timholy
merged 29 commits into
JuliaLang:master
from
NHDaly:nhd-snoopi-inferrable-set--TimerOutputs-profile
Oct 12, 2020
Merged
Changes from 18 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
88a504e
First pass at providing full inferrable set to SnoopCompile `@snoopi`
NHDaly a9d3d53
Use Array{Bool,0} to control snoopi "collect inference callees" feature
NHDaly 97b5cde
Start recording dependency graph edges for snoopi
NHDaly be69119
Comment out old attempt
NHDaly c2640ae
Second attempt at per-method inference timings, this time by also all…
NHDaly 516aabf
Undo commented out attempted ccall ptr for `typeinf()`
NHDaly 490395b
Delete leftovers from previous attempt
NHDaly 9b4bddc
Use a 0-dim array for `const _typeinf_function`.
NHDaly 57801e0
Switch from `_apply_latest()` to `_apply_pure()` which works even ins…
NHDaly 968bbdc
simplify array construction
NHDaly e8b40ff
Implement very basic nested timing in Core.Compiler.Timings
NHDaly bcd37f3
Add start_time to Core.Compiler.Timings to support profiles
NHDaly 0f56376
Simplify Timing() constructor
NHDaly 5b35567
Exclude snoop overhead from recursive per-method inference timings
NHDaly 132ba91
Fix root timing: reset() sets current time instead of 0
NHDaly b30adcf
Performance-tweaking typeinf measurement overhead.
NHDaly 388c747
Extract out enter_new_timer(name), exit_current_timer(_expected_name_…
NHDaly d79fbfc
Inline typeinf timing helper functions. Simplify __measure_typeinf__ …
NHDaly 152a93f
Use at-inboudnds more consistently in Core.Compiler.Timings
NHDaly 3289266
Fix close_current_timer() "root" timings. Add comments.
NHDaly 028e15d
Switch to recording MethodInstance, and world, in Core.Compiler.Timings.
NHDaly 9954bfa
Record more information in typeinf timing:
NHDaly dde84b2
Add tests of basic typeinf time functionality introduced in #37749
NHDaly cb9da41
Merge remote-tracking branch 'origin/master' into nhd-snoopi-inferrab…
NHDaly b61a64a
Rename s/Core.Compiler.__toggle_measure_typeinf/Core.Compiler.__set_m…
NHDaly 396ed33
Improve comments in base/compiler/typeinfer.jl
NHDaly 32b7be0
Use a consistent type for Timings.mi_info (`Tuple{Core.MethodInstance…
NHDaly 663f47f
Docstring, comment, and code cleanups from PR review
NHDaly f6f4705
PR feedback: use a Struct for snoopi info: InferenceFrameInfo
NHDaly 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
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.
Uh oh!
There was an error while loading. Please reload this page.