BeProfiler v0.9.1
Copyright 1998 R3 Software Ltd
This is a beta version of BeProfiler for geeks to play with.
Some comments:
- Use #pragma profile on to enable profiling support from the Metrowerks™ compiler. Remember to call PROFILE_INIT() and PROFILE_DUMP()! These calls should probably be placed in main().
- The three parameters to PROFILE_INIT() are hints on memory allocation. BeProfiler v0.9.1 actually ignores these right now.
- The core profiling engine is done, but I still need to write a powerful analysis tool. For now, simple analysis is printed to a file at the specified path when PROFILE_DUMP() is called.
- This version is limited to collecting data for a total of 50,000 function calls, 10 threads and 200 functions per run.
- The "virtual stack errors" sometimes reported are due to the fact that the destructor functions of BLoopers and their derived classes do not return. This can be handled fairly simply as a thread is closed at the same time. It will be recorded properly in the release version.
Revision History:
v0.9.1
- Added overhead calibration code.
- Fixed an awful bug which creap in to v0.9 and made the output complete crap.
- Added simple name unmangling.
- PROFILE_DUMP() now respects the file path parameter.
Let me know what you think at timmy@r3.co.nz