]> git.pond.sub.org Git - empserver/blobdiff - src/lib/common/path.c
A* path and neighbor cache performance statistics
[empserver] / src / lib / common / path.c
index cbd5f0a6f04b9d7d86d0c8acf4f681ede07a241d..965da6e29b81ea838ad47818b855fdd713f09707 100644 (file)
@@ -120,6 +120,8 @@ best_path(struct sctstr *from, struct sctstr *to, char *path, int mob_type)
 
 #ifdef AS_STATS
     as_stats(adp, stderr);
+    fprintf(stderr, "neighbor cache %zu bytes\n",
+           WORLD_SZ() * 6 * sizeof(struct sctstr *));
 #endif /* AS_STATS */
     return 0;
 }