Measuring disk I/O and memory consumption in a C++ program

I have an algorithm written in C++ using Xcode 6 (OS X).

How do I measure the 1) number of disk I/Os 2) Maximum Memory used by this program?

Is there a way to check this programmatically?

Source: c++

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.