In this section:

Starting Inuse on Windows

Run the inuse.exe file located int he <INSURE_INSTALL>/bin directory. See Inuse GUI for usage.

Starting Inuse on Unix

Setting up and running Inuse involves:

  1. Running the GUI.
  2. Linking your program to Inuse.
  3. Adding the inuse on option to your .psrc file and running the application program.

During runtime, you can view and manipulate the displays shown by the GUI. You can even watch the memory allocation as you single step through your program from a standard code-oriented debugger. This section will cover each of these steps in detail.

Additional Details for Unix

You must start the Inuse program before you attempt to display results from any user application. The application will run without displaying any memory activity if you run it before starting Inuse. In normal use, you should enter the inuse command once and leave it running as a background process.

You should compile your code with your regular compiler and then link with Insure++ based on your source, as shown in the following examples:

insure gcc -g -o foo foo.c

insure /path/to/gcc -g -o foo foo.c

insure g++ -g -o foo foo.cpp

To enable runtime display of memory activity, you need to set the following option in your .psrc file:

insure++.inuse on

Inuse can be linked simultaneously with any number of application programs. By turning this option on and off, you can control when your programs connect to Inuse. If you exit Inuse, you must restart it before running any applications for which you wish to display memory activity.

Inuse GUI

Executing the inuse command opens the Inuse GUI on Unix. When you connect a program to Inuse, the connection will appear in the main window. The “plugged in” symbol next to the connection shows that the program is currently sending data to Inuse. If you tell Inuse to stop receiving memory data from the program, this symbol will change to a stop sign. When the program finishes its run or is terminated, the symbol is replaced with a “RIP.”

The “look and feel” of a windowing application will vary quite significantly from system to system. As a result, the version of the window that you see might differ from that shown above.

Menu Bar

The menu bar contains commands that manage Inuse memory functions.  

File

Processes

Reports

The types of reports Inuse generates are described below. For more information on these reports, see Reviewing Inuse Reports.

Options (Windows)

Choose Auto Reports to choose the reports shown at each new connection. You will be able to enable the following reports:

Help

Online help feature for Inuse. Options include:

Toolbar

The toolbar contains the following buttons/functions:

 

ButtonDescription

Goes to the previous message in the Inuse GUI.

Goes to the next message in the Inuse GUI.

Deletes a selected message from the Inuse GUI.

Opens a history report for a linked application.

Opens a block frequency report for a linked application.

Opens a heap layout report for a linked application.

Opens a time layout report for a linked application.

Opens a usage summary report for a linked application.

Opens the query manager GUI for a linked application.

Accesses the online help menu for the Inuse application.

Block Color

An important visual aid in Inuse is the use of colors to represent the various properties of the heap.