Figure 1 Counting Function Calls

  void _penter ( void )
{
    if processing turned off
    {
        return
    }
    Get the return address
    Find the module which contains the return address
    If the module is not found
    {
        Initialize the new module data
        Load the module data
    }
    Find the function associated with that address in the module
    Increment the execution count for that function
}

Figure 2 File Handling for SWS FakePre-7507040f273c48adaab1159af494248f-19f1aa9b6419472bb49d2a13d0c71061