@mytec: prep for cuda
This commit is contained in:
@@ -409,15 +409,14 @@ class CoverageService:
|
||||
_clog(f" TOTAL: {total_time:.1f}s")
|
||||
_clog(f" Mode: {'parallel (' + str(num_workers) + ' workers)' if use_parallel else 'sequential'}")
|
||||
_clog(f" Tiles in memory: {len(self.terrain._tile_cache)}")
|
||||
if any(v > 0.001 for v in timing.values()):
|
||||
if any(isinstance(v, (int, float)) and v > 0.001 for v in timing.values()):
|
||||
_clog("=== PER-STEP BREAKDOWN ===")
|
||||
for step, dt in timing.items():
|
||||
if dt > 0.001:
|
||||
if isinstance(dt, float):
|
||||
_clog(f" {step:20s} {dt:.3f}s "
|
||||
f"({dt/max(1,len(grid))*1000:.2f}ms/point)")
|
||||
else:
|
||||
_clog(f" {step:20s} {dt}")
|
||||
if isinstance(dt, (int, float)) and dt > 0.001:
|
||||
_clog(f" {step:20s} {dt:.3f}s "
|
||||
f"({dt/max(1,len(grid))*1000:.2f}ms/point)")
|
||||
elif not isinstance(dt, (int, float)):
|
||||
_clog(f" {step:20s} {dt}")
|
||||
|
||||
return points
|
||||
|
||||
|
||||
Reference in New Issue
Block a user