RE: APPLE GUYS: Do you want Shark profiles of XCode when it hangs?
RE: APPLE GUYS: Do you want Shark profiles of XCode when it hangs?
- Subject: RE: APPLE GUYS: Do you want Shark profiles of XCode when it hangs?
- From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>
- Date: Tue, 30 Nov 2004 19:06:56 -0500
- Thread-topic: APPLE GUYS: Do you want Shark profiles of XCode when it hangs?
OK, I see where you are coming from, and I understand that I used the
terminology badly. Let me try to clarify my problems.
Performance problems should be solved just as you stated below; using
Shark or Spin Control, etc. However, sometimes during a single run,
I'll run into a problem. I don't know what exact path I followed to get
my system hung, but I did something. I know that it isn't a performance
problem, its just something locked up. Ideally, I'd have a trace of
everything that happened up to the moment that the system hung.
Unfortunately, that is too large. My next thought is just the apple
events that go into the program. If you can replay what was going on in
the 10-15 seconds before the problem occurred, you may have a good idea
as to what happened. I'm sure that there is a simple way of doing this;
unfortunately, I don't know how to. What I'd like is something that is
as simple to use as Shark or Spin Control that maintains a FIFO trace of
everything that is going on that can be triggered to take a snapshot
under some testable condition. Once again, 'everything' is too big.
The closest that I can get to that is all of the Apple events. My
assumption is that for many programs that only get their input from the
keyboard and mouse, this is pretty good. I was thinking about Shark
because I'm familiar with it.
Is there something like this that I can install on my tester's machines?
That way they can send me the traces and I can figure out what was
happening prior to the lock-up/crash/whatever.
Thanks,
Cem Karan
> -----Original Message-----
> From: j o a r [mailto:email@hidden]
> Sent: Tuesday, November 30, 2004 10:44 AM
> To: Karan, Cem (Civ, ARL/CISD)
> Cc: Xcode Users
> Subject: Re: APPLE GUYS: Do you want Shark profiles of XCode
> when it hangs?
>
>
>
> On 2004-11-30, at 16.00, Karan, Cem ((Civ, ARL/CISD)) wrote:
>
> > The problem is that I'm not often sure what caused the
> hang; sometimes
> > I'm doing one thing, sometimes another, etc. Can Sampler
> be set up to
> > catch all Apple events? That way you can have a script
> that Sampler
> > can run against XCode to see if it can cause the same
> behaviour twice.
> > We can edit the script to pare it down to the bare
> essentials of what
> > is necessary to cause the problem, and send that in.
> You'll know what
> > events were being passed around in the X number of seconds up to the
> > occurence of the problem, and (assuming that Sampler is modified to
> > talk
> > to other programs using any/all possible apple events) can
> even run the
> > script starting at any point and going to any point. That should
> > give
> > you a better idea as to what causes the problems.
>
> I don't quite understand what you're trying to do. In general, you
> don't use sampling tools (Sample, Shark, SpinControl, et.c.)
> to find a
> singular "thing" that happens during program execution (what
> you refer
> to as the "cause of the hang" above). In fact, as they "sample" - ie.
> only periodically inspects the application - they are not even
> technically reliable to be used in that way.
>
> But to back up - and to get back to the topic of this thread
> (at least
> as defined by the subject of the thread) - if you have a CPU bound
> performance problem (ie. the application is not deadlocked or idle),
> use one of the sampling tools (I would recommend Shark) and
> attach the
> report to the case.
>
> If you want to provide a *good* sample report, you would try
> to run the
> sampling tool only *while* you experience the performance problem -
> neither before, nor after. This is why SpinControl is such a
> convenient
> tool (especially for non-techie users / support staff), as it
> automatically samples only while the application is not responsive (A
> Shark version of SpinControl would be very cool...).
>
> j o a r
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden