What is an XPerf alternative for Linux and Mac OS X?

4

2

XPerf is a tool that allows you to take a detailed trace of various system activity like CPU, I/O and more...

Because of it's detail you can see stack trace counts, disk position offset graphs, driver calls and so on...

Is there a XPerf-a-like alternative for Linux and Mac OS X? What are the top-notch performance tools there?

Tamara Wijsman

Posted 2011-03-26T14:05:51.557

Reputation: 54 163

Answers

2

For linux you can combine many tools. top (or htop), iotop, etc. You could also install BSD accounting and use the sa command.

Darek

Posted 2011-03-26T14:05:51.557

Reputation: 886

1Some (or all?) of accounting is also available on OS X. – Daniel Beck – 2011-03-26T14:54:24.217

3

For OS X, look into dtrace and derived tools (I think fs_usage and sc_usage are related; there's also a Linux port), as well as parts of Apple's Developer Tools such as Shark (see e.g. here and here).

Daniel Beck

Posted 2011-03-26T14:05:51.557

Reputation: 98 421

Check out Instruments for the new version.

– Traveler – 2017-07-15T21:56:34.060

0

Rajbir Bhattacharjee

Posted 2011-03-26T14:05:51.557

Reputation: 1

0

fseventer is an excellent GUI filesystem monitor for OS X (support until 10.9 Mavericks, 10.10 Yosemite yet unsupported) . It uses the Spotlight API, and often helped me to determine undesired write activities, or determine which config files are indeed read in, etc.

porg

Posted 2011-03-26T14:05:51.557

Reputation: 279