Add performance statistics to path finder
New function path_find_print_stats() prints a few numbers of interest when compiled with PATH_FIND_STATS defined.
This commit is contained in:
parent
d7dccef3b1
commit
18dd516076
3 changed files with 46 additions and 1 deletions
|
@ -73,6 +73,11 @@ extern void path_find_from(coord, coord, natid, int);
|
|||
extern double path_find_to(coord, coord);
|
||||
extern double path_find(coord, coord, coord, coord, natid, int);
|
||||
extern size_t path_find_route(char *, size_t, coord, coord, coord, coord);
|
||||
#ifdef PATH_FIND_STATS
|
||||
extern void path_find_print_stats(void);
|
||||
#else
|
||||
#define path_find_print_stats() ((void)0)
|
||||
#endif
|
||||
|
||||
/* src/lib/common/path.c */
|
||||
extern char *BestDistPath(char *, struct sctstr *, struct sctstr *,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue