Files
sysprof/src/tools/meson.build
Christian Hergert 5b929b8d5d libsysprof-analyze: add callgraph flags for thread-ids
This allows you to set a flag to show the thread id of what was recorded.

Use this to help disassociate similar threads in a process to figure out
which thread is consuming a majority of the Total time of that process.
2023-06-14 15:11:56 -07:00

59 lines
1.5 KiB
Meson

tools_deps = [
dependency('glib-2.0'),
libsysprof_capture_dep,
]
tools_cflags = [ '-DSYSPROF_COMPILATION ']
sysprof_cli = executable('sysprof-cli', 'sysprof-cli.c',
dependencies: [libsysprof_static_dep, polkit_dep, polkit_agent_dep],
c_args: tools_cflags,
install_dir: get_option('bindir'),
install: true,
)
sysprof_cat = executable('sysprof-cat', 'sysprof-cat.c',
dependencies: tools_deps,
c_args: tools_cflags,
install: false,
)
if get_option('libsysprof')
sysprof_dump = executable('sysprof-dump', 'sysprof-dump.c',
dependencies: [libsysprof_dep],
c_args: tools_cflags,
install: false,
)
rewrite_pid = executable('rewrite-pid', ['rewrite-pid.c'],
dependencies: [libsysprof_dep],
c_args: tools_cflags,
install: false,
)
endif
if get_option('sysprofd') == 'bundled' or get_option('libsysprof')
sysprof_profiler_ctl = executable('sysprof-profiler-ctl',
[ 'sysprof-profiler-ctl.c', ipc_profiler_src ],
dependencies: [ tools_deps, dependency('gio-unix-2.0', version: glib_req_version) ],
c_args: tools_cflags,
install: false,
)
endif
list_threads = executable('list-threads', ['list-threads.c'],
dependencies: [ tools_deps ],
c_args: tools_cflags,
install: false,
)
if get_option('agent')
sysprof_agent = executable('sysprof-agent',
['sysprof-agent.c', ipc_agent_src],
dependencies: [libsysprof_static_dep],
c_args: tools_cflags,
install_dir: get_option('bindir'),
install: true,
)
endif