URL:
  <http://gna.org/patch/?2434>

                 Summary: Easy way to disable timing results from logs
                 Project: Freeciv
            Submitted by: cazfi
            Submitted on: Sat 29 Jan 2011 02:26:35 AM EET
                Category: general
                Priority: 5 - Normal
                  Status: Ready For Test
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 2.4.0

    _______________________________________________________

Details:

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
lines...)
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.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sat 29 Jan 2011 02:26:35 AM EET  Name: LogTimers.diff  Size: 15kB   By:
cazfi

<http://gna.org/patch/download.php?file_id=12149>

    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?2434>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to