Project-OSRM / osrm-backend

Open Source Routing Machine - C++ backend
http://map.project-osrm.org
BSD 2-Clause "Simplified" License
6.17k stars 3.28k forks source link

show progress report of osrm-extract #3891

Open MichalPP opened 7 years ago

MichalPP commented 7 years ago

it would be nice to have a progress report of osrm-extract steps. in my case having any progress output of Computing edge weights step would help. something like done 123 edges of 234 total every 30 minutes or so.

also the output Computing edge weights ... ok, after 10607.4s could add total number of edges computed. is it the same number as in [info] Writing used edges ... ok, after 0.023866sProcessed 468917 edges?

emiltin commented 7 years ago

duplicate of #419

MichalPP commented 7 years ago

@emiltin not really, maybe I should rephrase it to be "give Computing edge weights step the same percetnage progress report that other steps have" (since this step is the longest I have)

daniel-j-h commented 7 years ago

@MichalPP feel free to give it a try. Here is the location where edge weights are being computed, and the utility class for printing progress: