mirror of
https://github.com/ivabus/pantry
synced 2024-11-29 19:55:06 +03:00
3de2fce436
* Create package.yml * Create test.c * concurrency issues on install --------- Co-authored-by: Jacob Heider <jacob@tea.xyz>
13 lines
269 B
C
13 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);
|
|
}
|