This repository has been archived by the owner on Nov 11, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #276 from conveyal/updated-stops
Track updated stops separately within and across departure minutes
- Loading branch information
Showing
6 changed files
with
136 additions
and
59 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
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
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
26 changes: 26 additions & 0 deletions
26
src/main/java/com/conveyal/r5/profile/PropagationTimer.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.conveyal.r5.profile; | ||
|
||
/** | ||
* This groups together all the timers recording execution time of various steps of travel time propagation, which | ||
* is performed after the raptor search itself. | ||
* | ||
* TODO constructor that adds stop and target counts to top level message | ||
* LOG.info("Propagating {} iterations from {} stops to {} target points took {}s", | ||
* nIterations, nStops, endTarget - startTarget, (System.currentTimeMillis() - startTimeMillis) / 1000d | ||
* ); | ||
*/ | ||
public class PropagationTimer { | ||
|
||
public final ExecutionTimer fullPropagation = new ExecutionTimer("Full travel time propagation"); | ||
|
||
public final ExecutionTimer transposition = new ExecutionTimer(fullPropagation, "Travel time matrix transposition"); | ||
|
||
public final ExecutionTimer propagation = new ExecutionTimer(fullPropagation, "Propagation"); | ||
|
||
public final ExecutionTimer reducer = new ExecutionTimer(fullPropagation, "Travel time reducer"); | ||
|
||
public void log () { | ||
fullPropagation.logWithChildren(); | ||
} | ||
|
||
} |
Oops, something went wrong.