mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
tools: add glxinfo/eglinfo to cli/agent variants
Always do it here for now unless we really find a reason to not have it.
This commit is contained in:
@ -602,6 +602,17 @@ 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", "eglinfo",
|
||||||
|
"command-argv", (const char * const[]) {"eglinfo", NULL},
|
||||||
|
NULL));
|
||||||
|
sysprof_profiler_add_instrument (profiler,
|
||||||
|
g_object_new (SYSPROF_TYPE_SUBPROCESS_OUTPUT,
|
||||||
|
"stdout-path", "glxinfo",
|
||||||
|
"command-argv", (const char * const[]) {"glxinfo", NULL},
|
||||||
|
NULL));
|
||||||
|
|
||||||
/* Now open the writer for our session */
|
/* Now open the writer for our session */
|
||||||
if (!(writer = sysprof_capture_writer_new (capture_filename, BUFFER_SIZE)))
|
if (!(writer = sysprof_capture_writer_new (capture_filename, BUFFER_SIZE)))
|
||||||
{
|
{
|
||||||
|
|||||||
@ -545,6 +545,17 @@ Examples:\n\
|
|||||||
if (system_bus)
|
if (system_bus)
|
||||||
sysprof_profiler_add_instrument (profiler, sysprof_dbus_monitor_new (G_BUS_TYPE_SYSTEM));
|
sysprof_profiler_add_instrument (profiler, sysprof_dbus_monitor_new (G_BUS_TYPE_SYSTEM));
|
||||||
|
|
||||||
|
sysprof_profiler_add_instrument (profiler,
|
||||||
|
g_object_new (SYSPROF_TYPE_SUBPROCESS_OUTPUT,
|
||||||
|
"stdout-path", "eglinfo",
|
||||||
|
"command-argv", (const char * const[]) {"eglinfo", NULL},
|
||||||
|
NULL));
|
||||||
|
sysprof_profiler_add_instrument (profiler,
|
||||||
|
g_object_new (SYSPROF_TYPE_SUBPROCESS_OUTPUT,
|
||||||
|
"stdout-path", "glxinfo",
|
||||||
|
"command-argv", (const char * const[]) {"glxinfo", NULL},
|
||||||
|
NULL));
|
||||||
|
|
||||||
sysprof_profiler_record_async (profiler,
|
sysprof_profiler_record_async (profiler,
|
||||||
writer,
|
writer,
|
||||||
NULL,
|
NULL,
|
||||||
|
|||||||
Reference in New Issue
Block a user