fasttrips.Performance
- class fasttrips.Performance[source]
Performance class. Keeps track of performance information (time spent, number of labeling iterations, etc) related to pathfinding in Fast-Trips and for the the bigger loops.
Methods
__init__()Constructor.
add_info(iteration, pathfinding_iteration, ...)Add this row to the performance dict of arrays.
record_step_end(iteration, ...)Explicitly ends whatever step was happening at this level.
record_step_start(iteration, ...)Records the step start.
write(output_dir)Writes the results to OUTPUT_PERFORMANCE_FILE as a csv.
write_pathfinding(output_dir, append)Writes the pathfinding results to OUTPUT_PERFORMANCE_PF_FILE as a csv.
Attributes
OUTPUT_PERFORMANCE_FILEFile to write performance results
OUTPUT_PERFORMANCE_PF_FILEFile to write performance results
PERFORMANCE_COL_END_MEM_MBPERFORMANCE_COL_END_TIMEPERFORMANCE_COL_ITERATIONPerformance column: Iteration.
PERFORMANCE_COL_PATHFINDING_ITERATIONPerformance column: Pathfinding Iteration.
PERFORMANCE_COL_SIMULATION_ITERATIONPerformance column: Simulation Iteration.
PERFORMANCE_COL_START_MEM_MBPERFORMANCE_COL_START_TIMEPerformance column: step start time
PERFORMANCE_COL_STEP_DURATIONPERFORMANCE_COL_STEP_NAMEFor general performance (not pathfinding) Performance column: Step name (e.g.
PERFORMANCE_PF_COL_ITERATIONPerformance column: Iteration
PERFORMANCE_PF_COL_LABEL_ITERATIONSPerformance column: Number of label iterations
PERFORMANCE_PF_COL_MAX_STOP_PROCESS_COUNTPerformance column: Maximum number of times a stop was processed
PERFORMANCE_PF_COL_MEM_TIMESTAMPPerformance column: Timestamp of memory query, in a datetime.datetime
PERFORMANCE_PF_COL_NUM_LABELED_STOPSPerformance column: Number of labeled stops
PERFORMANCE_PF_COL_PATHFINDING_ITERATIONPerformance column: Pathfinding Iteration
PERFORMANCE_PF_COL_PATHFINDING_STATUSPerformance column: Pathfinding status
PERFORMANCE_PF_COL_PERSON_IDPerformance column: Person ID
PERFORMANCE_PF_COL_PERSON_TRIP_IDPerformance column: Person Trip ID
PERFORMANCE_PF_COL_PRIVATE_USAGE_BYTESPerformance column: Private usage in memory, in bytes
PERFORMANCE_PF_COL_PROCESS_NUMPerformance column: Process number
PERFORMANCE_PF_COL_TIME_ENUMERATINGPerformance column: Time spent enumerating (timedelta)
PERFORMANCE_PF_COL_TIME_ENUMERATING_MSPerformance column: Time spent enumerating (milliseconds)
PERFORMANCE_PF_COL_TIME_LABELINGPerformance column: Time spent labeling (timedelta)
PERFORMANCE_PF_COL_TIME_LABELING_MSPerformance column: Time spent labeling (milliseconds)
PERFORMANCE_PF_COL_TRACEDPerformance column: Traced, since this affects performance
PERFORMANCE_PF_COL_WORKING_SET_BYTESPerformance column: Working set in memory, in bytes