mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
3de2fce436
* Create package.yml * Create test.c * concurrency issues on install --------- Co-authored-by: Jacob Heider <jacob@tea.xyz>
14 lines
269 B
C
14 lines
269 B
C
#include <stdlib.h>
|
|
#include <jemalloc/jemalloc.h>
|
|
|
|
int main(void) {
|
|
|
|
for (size_t i = 0; i < 1000; i++) {
|
|
// Leak some memory
|
|
malloc(i * 100);
|
|
}
|
|
|
|
// Dump allocator statistics to stderr
|
|
malloc_stats_print(NULL, NULL, NULL);
|
|
}
|