Software performance profiler for OS4
- Size
- 1.1M (1,165,027 bytes)
- Added
- 2026-11-20 02:43
- Downloads
- 2
- Long Description
- Note ==== Profyler is a tool for programmers only! You have to be able to compile a program in order to use Profyler with it, so it is not useful for ordinary users. Introduction ============ Profyler is a software performance profiler -- or profiler for short -- for AmigaOS 4. It allows the execution speed of the various functions that make up a program to be measured, facilitating optimization of the program to improve its performance. More specifically, Profyler is a deterministic profiler, which adds code to the program being profiled in order to implement the profiling functionality. It uses the -finstrument-functions feature of the GCC compiler, which means that it only works with C and C++ programs compiled with GCC. It also means that a program must be compiled and then linked with LibProfyle in order to be profiled; you can't profile a program that you can't compile. There are two parts to Profyler: the Profyler program itself, which serves as the user interface; and LibProfyle, a linkable library that provides the profiling functionality. To profile a program you compile it and link it with LibProfyle, then run it to generate the profile data in memory. You then run Profyler to access the profile data and display it in a useful format. Features ======== o Measures the following parameters for every executed function in a program, displaying them in a list browser: - The function's name (C++ names are demangled) - The source file and line number where the function is defined - The number of times the function has been executed - The total execution time of all calls to the function, *including* any other functions it calls - The above as a percentage of the total execution time of the program - The average execution time of the function per call, *including* any other functions it calls - The total execution time of all calls to the function, *excluding* any other functions it calls - The above as a percentage of the total execution time of the program - The average execution time of the function per call, *excluding* any other functions it calls o All the usual list browser controls are available: - Can sort the list by any of the columns, in ascending or descending order - Can hide any of the columns if they are not of interest - Can drag and drop the columns to rearrange them o Can profile up to nine different programs, with a different tab and list browser for each; allows profiling of programs that interact with each other o Can save the profile data to a text file (or send it to a printer) for record keeping or for further review o Can save the profile data to a CSV file for import to a spreadsheet or other program for additional processing o Can disable profiling of parts of a function (including OS calls) that involve user interaction, so user response time doesn't affect profiling o Can avoid profiling of specific functions; useful for very brief functions that get called a lot, where the overhead of the profiler can greatly slow the program o Doesn't depend on any particular PowerPC variant or hardware, so should work with any Amiga model that supports OS4 o Automatically adapts to the EClock speed of the machine it's running on; the faster the EClock the finer the measurement resolution o The profiling code is optimized to be as quick as possible; for many applications the slowdown due to profiling is barely noticeable o Can profile single-threaded programs, linked libraries, and shared objects; in many cases no modification to the source code is required Limitations =========== o Can profile only the main thread of multi-threaded programs o Cannot profile functions that are called from a different context, such as a callback hook or custom BOOPSI gadget (MUI's custom classes and notification hooks are fine, as they are called from the program's context) o Cannot profile shared (Amiga-style) libraries or devi