mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-11 15:40:53 +00:00
libsysprof-capture: add simplified collector API
This is a simplified API for the inferior to use (such as from a LD_PRELOAD) that will use mmap()'d ring buffer created by Sysprof. Doing so can reduce the amount of overhead in the inferior enough to make some workloads useful. For example, collecting memory statistics and backtraces is now fast enough to be useful.
This commit is contained in:
@ -6,6 +6,7 @@ libsysprof_capture_headers = files([
|
||||
'sysprof-capture-reader.h',
|
||||
'sysprof-capture-types.h',
|
||||
'sysprof-capture-writer.h',
|
||||
'sysprof-collector.h',
|
||||
'sysprof-platform.h',
|
||||
'sysprof-capture.h',
|
||||
'sysprof-version-macros.h',
|
||||
@ -22,6 +23,7 @@ libsysprof_capture_sources = files([
|
||||
'sysprof-capture-util.c',
|
||||
'sysprof-capture-writer.c',
|
||||
'sysprof-capture-writer-cat.c',
|
||||
'sysprof-collector.c',
|
||||
'sysprof-clock.c',
|
||||
'sysprof-platform.c',
|
||||
])
|
||||
@ -35,6 +37,8 @@ configure_file(
|
||||
|
||||
libsysprof_capture_deps = [
|
||||
glib_dep,
|
||||
gio_dep,
|
||||
gio_unix_dep,
|
||||
]
|
||||
|
||||
libsysprof_capture = static_library(
|
||||
|
||||
Reference in New Issue
Block a user