Hi Folks,
I`ve written a profiler currently for use on Pentium and Pentium/MMX systems, unlike other profilers available, Intels VTUNE, and Christian Ludloffs 4P package, there are some similarities between them PentProf requires that you add the profiling code to your applications, currently it only supports Watcom C++, other versions maybe done, there is one .c file, one .h file and one .asm file that need to be added, in the .c file theres a dummy function, this funciton is called everytime you call the routine pent(); pent() is the wrapper around the dummy function. You add your own code to profile to the dummy function and pent() calls it and profiles it. The you call the PentInfo() function and a file is saved out, you later run the analyse program to get the required results, here are some sample results, , these results only show some of the available information. Its pretty simple to setup heres a sample..
#include "pentprof.h"
main()
{
int a;
for (a=0;A<100;a++) {
pent();
}
PentInfo();
}
void called_function(void)
{
do_something();
}
Ok this produces a file called pentinfo.txt , you run this from the analyser
and it gives a similar output to the sample given before.
Also i`m providing source code to all of the program, no .obj`s no .lib`s, I`d prefer that if you want to add it to your homepage that you link to here as opposed to copying it, i`m working on it all the time, if you don`t want to link to my pages directly for whatever reason at least add a reference so that people can get updates for it, especially bug fixes, i`m going to add penitum pro support soon. If you rip it off, thats also upto you, i can`t really stop you, but i`m sure people will see the similarity.
This program will not function in a windows dos box, even if it did it would be erratic information so its better to do it from a vanilla dos environment..
I`m also working on a version that will run under windows 95 , probably using a vxd or something, i`m working with Intel to try and get around the problems arising from this.
Also Intel`s VTUNE is a very good package and does dynamic profiling too, it however runs under windows only, and does not yet handle C++ properly, read about it here VTune Homepage .
Christian Ludloffs 4P package is also very good, Currently i can`t find a place to link to for this package, it used to be on the Intel Secrets homepage but i can`t seem to find it there anymore.. Anyway i`ve written of to him and see if he can help out, that is if he`s not in Scotland..
PentOpt is also a profiler of sorts, but is source code only, its very useful for quick checks see here .
Copyright Charlie Wallace 1996.