Enabling Memory Tracking

Enable memory tracking to help you locate memory leaks in your UDFs, and to free the leaked memory. Memory tracking imposes a performance penalty.

Enabling memory tracking tracks all invocations of a_v4_extfn_proc_context alloc and a_v4_extfn_proc_context free. An allocations without a matching free is logged to the iqmsg file.

  1. Ensure the external_UDF_execution_mode is set to 1 or 2 (validation mode or tracing mode).
  2. Use the alloc and free methods of a_v4_extfn_proc_context.
Related reference
alloc
free