Newbie: performance analysis through the command line

I am looking for a performance analysis tool with the following properties:

  • Free
  • It works on Windows.
  • It does not require the use of a GUI (i.e. you can run it from the command line or use some library in any programming language).
  • It works on some x86-based architecture (preferably Intel).
  • You can measure the runtime of my C ++, mingw-compiled, program, with the exception of the time spent on a few specific functions that I specify (and all the calls coming from them).
  • It is possible to measure the amount of memory used by my program, with the exception of the memory allocated by the functions that I indicated in (5), and all calls made from them.

A tool with properties (1) - (5) (without 6) can be very valuable to me.

My goal is to be able to consistently compare the runtime and memory usage of different programs (i.e. the main requirement is that synchronization of the same program twice would lead to approximately the same results).

+3
source share
2 answers

Mingw should already have the gprof tool . To use it, you just need to compile the correct set of flags. I think it was -g -pg.

+3
source

() umdh.exe, , . , , .

, , (6), . , .

+1

All Articles