Search in sources :

Example 6 with StopWatch

use of com.graphhopper.util.StopWatch in project graphhopper by graphhopper.

the class PrepareLandmarks method doWork.

@Override
public void doWork() {
    super.doWork();
    StopWatch sw = new StopWatch().start();
    LOGGER.info("Start calculating " + lms.getLandmarkCount() + " landmarks, default active lms:" + defaultActiveLandmarks + ", weighting:" + lms.getLmSelectionWeighting() + ", " + Helper.getMemInfo());
    lms.createLandmarks();
    lms.flush();
    LOGGER.info("Calculating landmarks for " + (lms.getSubnetworksWithLandmarks() - 1) + " subnetworks took:" + sw.stop().getSeconds() + " => " + lms.getLandmarksAsGeoJSON() + ", stored weights:" + lms.getLandmarkCount() + ", nodes:" + graph.getNodes() + ", " + Helper.getMemInfo());
}
Also used : StopWatch(com.graphhopper.util.StopWatch)

Aggregations

StopWatch (com.graphhopper.util.StopWatch)6 GHPoint (com.graphhopper.util.shapes.GHPoint)3 GraphHopper (com.graphhopper.GraphHopper)2 ObjectNode (com.fasterxml.jackson.databind.node.ObjectNode)1 GHRequest (com.graphhopper.GHRequest)1 GHResponse (com.graphhopper.GHResponse)1 PathWrapper (com.graphhopper.PathWrapper)1 GHBitSet (com.graphhopper.coll.GHBitSet)1 JsonFeatureCollection (com.graphhopper.json.geo.JsonFeatureCollection)1 PrincetonReader (com.graphhopper.reader.PrincetonReader)1 EncodingManager (com.graphhopper.routing.util.EncodingManager)1 FlagEncoder (com.graphhopper.routing.util.FlagEncoder)1 HintsMap (com.graphhopper.routing.util.HintsMap)1 AlgoHelperEntry (com.graphhopper.routing.util.TestAlgoCollector.AlgoHelperEntry)1 Directory (com.graphhopper.storage.Directory)1 GraphBuilder (com.graphhopper.storage.GraphBuilder)1 GraphHopperStorage (com.graphhopper.storage.GraphHopperStorage)1 ChangeGraphResponse (com.graphhopper.storage.change.ChangeGraphResponse)1 LocationIndexTree (com.graphhopper.storage.index.LocationIndexTree)1 QueryResult (com.graphhopper.storage.index.QueryResult)1