Summary: Easy way to disable timing results from logs
Submitted by: cazfi
Submitted on: Sat 29 Jan 2011 02:26:35 AM EET
Priority: 5 - Normal
Status: Ready For Test
Assigned to: None
Discussion Lock: Any
Planned Release: 2.4.0
I have been debugging problems with autogame that should result in identical
savegames, in fact resulting in different savegames.
I have to find out where exactly execution starts to diverge. For that I have
run autogames with full (-d 4) logging and then compared logs of the
different runs to find first difference. Number of attempts to do that
resulted in logs full of differences that were not about different results.
That is: diffs were full of noise (and by full I mean tens of thousands of
Biggest category of such differences in log files are timing loggings. If
execution of autosettlers takes one millisecond longer in second run than
first one, it's in diff.
Attached patch puts all such timing loggings behind one macro: LOG_TIMERS.
To disable all timing loggings, and thus to get more comparable logs, one
needs only to undefine this one macro.
Date: Sat 29 Jan 2011 02:26:35 AM EET Name: LogTimers.diff Size: 15kB By:
Reply to this item at:
Message sent via/by Gna!
Freeciv-dev mailing list