Re: Comparing Run Logs?
Re: Comparing Run Logs?
- Subject: Re: Comparing Run Logs?
- From: Steve Christensen <email@hidden>
- Date: Wed, 7 Mar 2007 13:16:41 -0800
On Mar 7, 2007, at 1:01 PM, email@hidden wrote:
I'm debugging a intermittent crashed thread. My application
indicates when a subthread has ended abnormally. I'm trying to
locate the problem by comparing the run log of when it works with
the run log of when it doesn't work.
1- Is there an easy way of doing this? FileMerge indicated there
was one difference, which was everything.
If your run logs include things like a timestamp and process ID in
each line dumped to the log, then naturally nothing will match. In
that case, probably best to copy the entries from each log file into
new files, then use a regular expression to chop out the timestamp,
etc., and just leave the rest of each line. At that point, you should
more nearly be dealing with apples and apples (so to speak).
2- I have one NSLog message that is sometimes displaced maybe 10
messages later than the timer indicates, and it appears inserted
into the middle of another NSLog message. I've seen this twice,
same original message inserted into the same later message at a
slightly different point, but it occurs both when the thread
crashes and when it doesn't. Is this a symptom of something?
If you're multi-threaded then it's certainly possible for various
threads to be dumping text to the log at arbitrary times, even in the
midst of another thread trying to write to the log.
steve
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden