changeset 5380 | 8ea58542b6e0 |
parent 5083 | 102fef5c5c9c |
5379:929378a0014f | 5380:8ea58542b6e0 |
---|---|
144 _total_pf_time_us += t; |
144 _total_pf_time_us += t; |
145 char ttc = Yapf().TransportTypeChar(); |
145 char ttc = Yapf().TransportTypeChar(); |
146 float cache_hit_ratio = (float)m_stats_cache_hits / (float)(m_stats_cache_hits + m_stats_cost_calcs) * 100.0f; |
146 float cache_hit_ratio = (float)m_stats_cache_hits / (float)(m_stats_cache_hits + m_stats_cost_calcs) * 100.0f; |
147 int cost = bDestFound ? m_pBestDestNode->m_cost : -1; |
147 int cost = bDestFound ? m_pBestDestNode->m_cost : -1; |
148 int dist = bDestFound ? m_pBestDestNode->m_estimate - m_pBestDestNode->m_cost : -1; |
148 int dist = bDestFound ? m_pBestDestNode->m_estimate - m_pBestDestNode->m_cost : -1; |
149 DEBUG(yapf, 3)("[YAPF][YAPF%c]%c%4d- %d us - %d rounds - %d open - %d closed - CHR %4.1f%% - c%d(sc%d, ts%d, o%d) -- ", ttc, bDestFound ? '-' : '!', veh_idx, t, m_num_steps, m_nodes.OpenCount(), m_nodes.ClosedCount(), cache_hit_ratio, cost, dist, m_perf_cost.Get(1000000), m_perf_slope_cost.Get(1000000), m_perf_ts_cost.Get(1000000), m_perf_other_cost.Get(1000000)); |
149 DEBUG(yapf, 3, "[YAPF%c]%c%4d- %d us - %d rounds - %d open - %d closed - CHR %4.1f%% - c%d(sc%d, ts%d, o%d) -- ", ttc, bDestFound ? '-' : '!', veh_idx, t, m_num_steps, m_nodes.OpenCount(), m_nodes.ClosedCount(), cache_hit_ratio, cost, dist, m_perf_cost.Get(1000000), m_perf_slope_cost.Get(1000000), m_perf_ts_cost.Get(1000000), m_perf_other_cost.Get(1000000)); |
150 return bDestFound; |
150 return bDestFound; |
151 } |
151 } |
152 |
152 |
153 /** If path was found return the best node that has reached the destination. Otherwise |
153 /** If path was found return the best node that has reached the destination. Otherwise |
154 * return the best visited node (which was nearest to the destination). |
154 * return the best visited node (which was nearest to the destination). |