Sampler.app has been removed and replaced by Instruments.app in XCode 3 As such, a sampler report cannot be exported anymore. There should be updated alternative ways of providing relevant debug data.
I still have Sampler.app on my 10.5 install, right where it said it'd be. XCode 3 as well.
It's actually a trace template for Instruments.app. :)
Håkan wrote this (though it doesn't say he's maintaining it like the general debugging one). Since a lot of non-Mac Mozilla devs are still on 10.4, it probably makes sense to preserve 10.4 stuff and add anything needed for 10.5
Check out SpinControl.app - it's a new 10.5 app that will detect hangs and show them in a neat list. I *think* it might also be able to export sample data... Can someone verify that this is the true Sampler.app replacement?
Yes, it is able to show a text report, from which it can be (exported) pasted at Mozilla Pastebin. I think it should be used for 10.5 XCode 3 instead of Sampler.app for 10.5. See: https://bugzilla.mozilla.org/show_bug.cgi?id=410998#c7
Spin Control's not actually new; I have in in my CHUD tools on my 10.3.9 Mac ;) I'm not sure Spin Control is a real replacement for Sampler.app, but it does auto-sample hanging apps, which is nice in that respect. Its "text report" output is pretty much a traditional sample, but it also has some assorted views you can use to examine the sample. Sampler.tracetemplate indeed launches Instruments, and you can attach to a process just like before and sample. It also has some nifty-looking views that wow me with their pretty colors ;) Unfortunately, it doesn't seem to export any sort of plain-text sample. So, I've added a section for 10.5 using Spin Control; if everyone seems happy with those instructions, I guess we can close this FIXED.
I've noticed that you can take samples of any selected app in ActivityMonitor.app now. Maybe that is a better replacement for Sampler.app?
(In reply to comment #7) > I've noticed that you can take samples of any selected app in > ActivityMonitor.app now. Maybe that is a better replacement for Sampler.app? That's worked since 10.3, too ;) I guess it really depends on our target audience for this page: is it for end-users, who just want to produce a human-readable sample to attach to bugzilla, or is it for developers who would benefit from some of the pretty views of the sample data?
This would be WFM, there is now an article: https://developer.mozilla.org/en/Debugging_a_hang_on_OS_X#Creating_the_sample_on_Mac_OS_X_10.5
Status: NEW → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → WORKSFORME
Component: Documentation Requests → Documentation
Product: Mozilla Developer Network → Mozilla Developer Network
Component: Documentation → General
Product: Mozilla Developer Network → Developer Documentation
You need to log in before you can comment on or make changes to this bug.