mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
libsysprof: add test for subprocess output
This commit is contained in:
@ -237,6 +237,12 @@ main (int argc,
|
|||||||
sysprof_profiler_add_instrument (profiler, sysprof_tracefd_consumer_new (g_steal_fd (&gjs_trace_fd)));
|
sysprof_profiler_add_instrument (profiler, sysprof_tracefd_consumer_new (g_steal_fd (&gjs_trace_fd)));
|
||||||
sysprof_profiler_add_instrument (profiler, sysprof_tracefd_consumer_new (g_steal_fd (&trace_fd)));
|
sysprof_profiler_add_instrument (profiler, sysprof_tracefd_consumer_new (g_steal_fd (&trace_fd)));
|
||||||
|
|
||||||
|
sysprof_profiler_add_instrument (profiler,
|
||||||
|
g_object_new (SYSPROF_TYPE_SUBPROCESS_OUTPUT,
|
||||||
|
"stdout-path", "__zoneinfo__",
|
||||||
|
"command-argv", (const char * const[]) { "cat", "/proc/zoneinfo", NULL },
|
||||||
|
NULL));
|
||||||
|
|
||||||
sysprof_profiler_record_async (profiler, writer, NULL, record_cb, NULL);
|
sysprof_profiler_record_async (profiler, writer, NULL, record_cb, NULL);
|
||||||
|
|
||||||
g_unix_signal_add (SIGINT, sigint_handler, main_loop);
|
g_unix_signal_add (SIGINT, sigint_handler, main_loop);
|
||||||
|
|||||||
Reference in New Issue
Block a user