mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-10 07:00:53 +00:00
libsysprof: use a{sv} for future profiler specific options
We may need this in the future to send backend-specific options to the profiler peer.
This commit is contained in:
@ -229,7 +229,7 @@ sysprof_proxy_source_monitor (SysprofProxySource *self,
|
|||||||
self->object_path,
|
self->object_path,
|
||||||
"org.gnome.Sysprof3.Profiler",
|
"org.gnome.Sysprof3.Profiler",
|
||||||
"Start",
|
"Start",
|
||||||
g_variant_new ("(h)", handle),
|
g_variant_new ("(a{sv}h)", NULL, handle),
|
||||||
G_VARIANT_TYPE ("()"),
|
G_VARIANT_TYPE ("()"),
|
||||||
G_DBUS_CALL_FLAGS_NO_AUTO_START,
|
G_DBUS_CALL_FLAGS_NO_AUTO_START,
|
||||||
-1,
|
-1,
|
||||||
|
|||||||
@ -2,9 +2,28 @@
|
|||||||
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
|
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
|
||||||
<node>
|
<node>
|
||||||
<interface name="org.gnome.Sysprof3.Profiler">
|
<interface name="org.gnome.Sysprof3.Profiler">
|
||||||
|
<!--
|
||||||
|
Start:
|
||||||
|
@options: an a{sv} of implementation specific options
|
||||||
|
@fd: a file-descriptor for the profiler to write to
|
||||||
|
|
||||||
|
Start the profiler if it is not running.
|
||||||
|
|
||||||
|
If the profiler is already running, this method should return
|
||||||
|
an error so that the caller knows not to call Stop().
|
||||||
|
|
||||||
|
It is also suggested that implementations disable profiling if
|
||||||
|
they lose the peer connection.
|
||||||
|
-->
|
||||||
<method name="Start">
|
<method name="Start">
|
||||||
|
<arg type="a{sv}" name="options" direction="in"/>
|
||||||
<arg type="h" name="fd" direction="in"/>
|
<arg type="h" name="fd" direction="in"/>
|
||||||
</method>
|
</method>
|
||||||
|
<!--
|
||||||
|
Stop:
|
||||||
|
|
||||||
|
Stop the profiler if it is running.
|
||||||
|
-->
|
||||||
<method name="Stop"/>
|
<method name="Stop"/>
|
||||||
</interface>
|
</interface>
|
||||||
</node>
|
</node>
|
||||||
|
|||||||
Reference in New Issue
Block a user