forked from pantsbuild/pants
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement critical path algorithm in Graph (pantsbuild#8308)
### Problem We will want to add critical path information to the data we gather on each pants run in v2. Previously, this information wasn't computed anywhere in the engine. ### Solution Implement the algorithm and write a unit test which should serve as documentation for now. More work will come in a follow-up PR to percolate this data to our reporting systems. ### Result The `Graph` now has a `critical_path` function that takes a function mapping each node to a duration and returns the total time as well as the nodes on the critical path in topological order.
- Loading branch information
1 parent
608e7a5
commit fa8d926
Showing
1 changed file
with
188 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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