Drake
Drake C++ Documentation
LimitMallocParams Struct Reference

Detailed Description

Parameters to control malloc limits.

#include <drake/common/test_utilities/limit_malloc.h>

Public Attributes

int max_num_allocations {-1}
 Maximum calls to malloc, calloc, or realloc (totaled as one). More...
 
int min_num_allocations {-1}
 Minimum calls to malloc, calloc, or realloc (totaled as one). More...
 
bool ignore_realloc_noops {false}
 Whether a realloc() that leaves its ptr unchanged should be ignored. More...
 

Member Data Documentation

◆ ignore_realloc_noops

bool ignore_realloc_noops {false}

Whether a realloc() that leaves its ptr unchanged should be ignored.

◆ max_num_allocations

int max_num_allocations {-1}

Maximum calls to malloc, calloc, or realloc (totaled as one).

When less than zero, there is no limit on the number of calls.

◆ min_num_allocations

int min_num_allocations {-1}

Minimum calls to malloc, calloc, or realloc (totaled as one).

When less than zero, there is no limit on the number of calls.


The documentation for this struct was generated from the following file: