Compilare MariaDB con TCMalloc

TCMalloc è una libreria che può sostituire malloc, ottimizzata per il multi-thread. Inoltre contiene un debugger e un profiler di memoria built-in.

Per compilare MariaDB 5.5 con TCMalloc, occorre usare il seguente comando:

cmake -DCMAKE_EXE_LINKER_FLAGS='-ltcmalloc'  -DWITH_SAFEMALLOC=OFF

Molte altre librerie che possono sostituire malloc (così come i debugger e i profiler di memoria) possono essere compilate in MariaDB in modo simile.

Commenti

Sto caricando i commenti......
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.