mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-06 01:08:14 +03:00

* Performance improvements * Support for splitting CPU meters into two or four columns (thanks to Wim Heirman) * Switch from PLPA, which is now deprecated, to HWLOC. * Bring back support for native Linux sched_setaffinity, so we don't have to use HWLOC where we don't need to. * Support for typing in user names and column fields in selection panels.
29 lines
673 B
C
29 lines
673 B
C
|
|
#if defined(DEBUG)
|
|
|
|
/* Full debug */
|
|
#include "DebugMemory.h"
|
|
#define calloc(a, b) DebugMemory_calloc(a, b, __FILE__, __LINE__)
|
|
#define malloc(x) DebugMemory_malloc(x, __FILE__, __LINE__, #x)
|
|
#define realloc(x,s) DebugMemory_realloc(x, s, __FILE__, __LINE__, #x)
|
|
#define strdup(x) DebugMemory_strdup(x, __FILE__, __LINE__)
|
|
#define free(x) DebugMemory_free(x, __FILE__, __LINE__)
|
|
#define debug_done() DebugMemory_report(); _nc_freeall()
|
|
|
|
#elif defined(DEBUGLITE)
|
|
|
|
/* Assertions and core only */
|
|
#ifdef NDEBUG
|
|
#undef NDEBUG
|
|
#endif
|
|
#define debug_done()
|
|
|
|
#else
|
|
|
|
/* No debugging */
|
|
#define NDEBUG
|
|
#define debug_done()
|
|
|
|
#endif
|
|
|