EZProfPlus
EZProfPlus is a simple profiler based on the ideas and code snippets by
Daniel Reinhold as described in his Haiku Newsletter
article. Unlike the original article, mine is a native BeOS GUI
application. I made it
above all for my own training.
Screenshot
Usage
- Include trace.c in your
project (included in the download).
- Recompile your project with -finstrument-functions
gcc option.
- Start EZProfPlus and load your recompiled program with 'Load
Program Image'.
- Start your program, trace messages fly by.
- Quit your program and examine the run-time statistics.
The profiler works by
capturing messages sent by a client (profiled) program. The client
sends messages by using gcc's instrument functions feature. The
compiler generates calls to special tracing functions to keep track of
function invocations and exits. A module trace.c with the
appropriate
instrument functions is described in the above mentioned article and
included in
the download.
The actual profiler stuff is in ezprofutil.cpp, which can be
also compiled as
a stand-alone command-line program by
gcc ezprofutil.cpp -o ezprof -DSTANDALONE
Requirements
- BeOS R5 and compatibles. May work on Dano, Zeta, Haiku.
Download
This program is provided AS IS.
No
guarantee whatsoever is given that it will work as advertised or that
it will not hurt your data, your computer, your dog or chip off your
aura. You know the drill.
EZProfPlus v0.1 binaries
Copyright
© 2005 by Matjaž Kovač