Instruments:
https://developer.apple.com/library/mac/documentation/Develo...
Which for some features it just a fancy UI on top of dtrace, but still a good way to get started with these kinds of things.
https://developer.apple.com/library/mac/documentation/Develo...
Which for some features it just a fancy UI on top of dtrace, but still a good way to get started with these kinds of things.