-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Add per-task metrics #56320
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
kpamnany
merged 56 commits into
JuliaLang:master
from
RelationalAI:npr-pv-cpu-task-timer
Dec 6, 2024
Merged
Add per-task metrics #56320
Changes from all commits
Commits
Show all changes
56 commits
Select commit
Hold shift + click to select a range
85b89f4
basic task cpu time tracking
vilterp dad31b0
initialize to zero
vilterp 3802448
make new task field visible from Julia
vilterp bbe8b29
add start time
vilterp 480b916
fix typo
vilterp be8c1a2
add test
vilterp ad8c184
add a wait
vilterp e37004a
import `LinearAlgebra` for `peakflops`
vilterp 6e4fd27
update last scheduled on task finish as well
vilterp 8721245
no need to update last scheduled in finish
vilterp a2c98fa
add test
vilterp c5562d7
fix test
vilterp 9685032
Add per-task wall-time
nickrobinson251 fa4f0e8
Test individual task cpu_time less than wall_time
nickrobinson251 89f8239
More tests
nickrobinson251 6b0855e
Move task timings mostly to julia
nickrobinson251 5e7e385
Record cpu time on entrance to `wait/yield`
nickrobinson251 182c1a5
Rename 'scheduled_at' -> '[en/de]queued_at'
nickrobinson251 b60f3c4
Ability to enable/disable task timings globally
nickrobinson251 7e871e2
fixup whitespace
nickrobinson251 523d936
Enable task timing in test
nickrobinson251 2c7aa36
Enable task timing for root task
nickrobinson251 70c56b5
Prevent `task_timing(false)` decrementing below zero
nickrobinson251 1b60b9f
Change task-timing flag to require yes/no arg
nickrobinson251 81cd488
Rename `timings`->`metrics`, `dequeued`->`started_running`
nickrobinson251 a42d524
Update task-state-transition comments
nickrobinson251 9b35821
Remove unused debug function
nickrobinson251 8fcc685
Add NEWS
nickrobinson251 6e248ef
Add fallback recording of cpu time in `wait()`
nickrobinson251 8b0d493
Instrument async io
nickrobinson251 81edb59
Record task cpu time in `wait()`
nickrobinson251 0863ab0
fixup! Record task cpu time in `wait()`
nickrobinson251 ea1a6f4
fixup! Change task-timing flag to require yes/no arg
nickrobinson251 a6724d3
Make task metrics flag const and counters atomic
nickrobinson251 e9e1e65
Mark the new APIs experimental
nickrobinson251 6c57fd7
Return task metrics as Int or nothing if disabled
nickrobinson251 7167d87
Test metrics updating as expected
nickrobinson251 6bdb7a8
fixup! Make task metrics flag const and counters atomic
nickrobinson251 dae7627
More tests
nickrobinson251 f5b55f2
Update test/core.jl
nickrobinson251 2532e24
Introduce `current_task_*_time_ns` for non-racy continuous metrics
nickrobinson251 3be2365
Consolidate names again
nickrobinson251 f8a0185
Update CPU time on finish before setting task done
nickrobinson251 8475671
Remove TODO comment
nickrobinson251 bdfff79
Add new functions to docs
nickrobinson251 51ca0cb
fixup! Add new functions to docs
nickrobinson251 6bf9aa9
Return `UInt64` instead of `Int`
kpamnany 8fbe1ff
Always return a `UInt64` type (even when returning 0)
kpamnany 4be17af
Convert task timestamps to UInt32 delta-times since system boot.
NHDaly 8d1cde7
Update base/task.jl
NHDaly f817369
Revert "Convert task timestamps to UInt32 delta-times since system bo…
NHDaly 36f85f3
Try adding `alignas(8)` to force correct alignment and work around GC…
NHDaly 6871b73
Revert "Try adding `alignas(8)` to force correct alignment and work a…
kpamnany 788f46f
Reorder task structure and add padding
kpamnany e02c830
More changes of `task_cpu_time_ns` to `task_running_time_ns`
kpamnany 18ee519
Move calls to `record_running_time!`
kpamnany 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
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
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
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
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.