tests: add tool to list total/temp/leaked allocations

This is just a quick example of how to find temporary allocations.
This commit is contained in:
Christian Hergert
2020-02-18 11:56:45 -08:00
parent 0aff0b1466
commit 521024d51f
2 changed files with 160 additions and 0 deletions

View File

@ -27,6 +27,11 @@ test_mapped_ring_buffer = executable('test-mapped-ring-buffer', 'test-mapped-rin
dependencies: [libsysprof_capture_dep],
)
find_temp_allocs = executable('find-temp-allocs', 'find-temp-allocs.c',
c_args: test_cflags,
dependencies: [libsysprof_capture_dep],
)
test('test-capture', test_capture, env: test_env)
test('test-capture-cursor', test_capture_cursor, env: test_env)
test('test-mapped-ring-buffer', test_mapped_ring_buffer, env: test_env)