'Heap Memory Limit' Failure Emulation

Applies to AQTime 8.81, last modified on January 18, 2022

About 'Heap Memory Limit' Failure Emulation

Use this emulation type to check whether your application handles errors that occur when it tries to allocate a limited amount of heap memory. AQTime will catch all the attempts of your application to allocate heap memory that exceeds the limit and make the application “think” that the heap memory is not enough for the application run.

Note: The 'Heap Memory Limit' failure emulation is supported only for native (unmanaged) applications. You cannot emulate memory failures when profiling managed applications.

Specifying Emulation Parameters

You can specify emulation parameters in the Profiler Options dialog which AQTime invokes upon running the Failure Emulator profiler or in the Failure Profiler Options dialog.

To create a new 'Heap Memory Limit' failure emulation and specify its parameters:

  • In the dialog, click Add.

  • On the first page of the subsequent Add New Failure Emulation wizard, select the Memory category from the list on the left, then select Heap Memory Limit from the list on the right and click Next.

  • On the second page of the wizard, specify all parameters for the selected failure emulation and click Finish.

To modify parameters of an existing 'Heap Memory Limit' failure emulation:

  • Click the ellipsis button in the Parameters cell.

  • In the subsequent Edit 'Heap Memory Limit' Failure Parameters dialog, modify the desired parameters and click OK.

AQTime saves your settings between profiler runs, so you will not have to define parameters next time you run the profiler.

Parameters

Memory Limit

Specifies the limit of the heap memory (in kilobytes) that can be used by the application during the profiling.

For information on using the Failure Emulator profiler, see Failure Emulator Profiler - Overview.

See Also

Memory Failure Emulation
Failure Emulation Reference
Failure Emulator Profiler - Overview

Highlight search results