mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
sysprof3: start moving API towards sysprof-3
This commit is contained in:
@ -2,21 +2,21 @@ install_data('sysprof-mime.xml',
|
|||||||
install_dir: join_paths(datadir, 'mime/packages')
|
install_dir: join_paths(datadir, 'mime/packages')
|
||||||
)
|
)
|
||||||
|
|
||||||
install_data('org.gnome.sysprof2.gschema.xml',
|
install_data('org.gnome.sysprof3.gschema.xml',
|
||||||
install_dir: join_paths(datadir, 'glib-2.0/schemas')
|
install_dir: join_paths(datadir, 'glib-2.0/schemas')
|
||||||
)
|
)
|
||||||
|
|
||||||
i18n.merge_file(
|
i18n.merge_file(
|
||||||
input: 'org.gnome.Sysprof2.appdata.xml.in',
|
input: 'org.gnome.Sysprof3.appdata.xml.in',
|
||||||
output: 'org.gnome.Sysprof2.appdata.xml',
|
output: 'org.gnome.Sysprof3.appdata.xml',
|
||||||
po_dir: podir,
|
po_dir: podir,
|
||||||
install: true,
|
install: true,
|
||||||
install_dir: join_paths(datadir, 'metainfo')
|
install_dir: join_paths(datadir, 'metainfo')
|
||||||
)
|
)
|
||||||
|
|
||||||
i18n.merge_file(
|
i18n.merge_file(
|
||||||
input: 'org.gnome.Sysprof2.desktop.in',
|
input: 'org.gnome.Sysprof3.desktop.in',
|
||||||
output: 'org.gnome.Sysprof2.desktop',
|
output: 'org.gnome.Sysprof3.desktop',
|
||||||
type: 'desktop',
|
type: 'desktop',
|
||||||
po_dir: podir,
|
po_dir: podir,
|
||||||
install: true,
|
install: true,
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<component type="desktop-application">
|
<component type="desktop-application">
|
||||||
<id>org.gnome.Sysprof2.desktop</id>
|
<id>org.gnome.Sysprof3.desktop</id>
|
||||||
<translation type="gettext">sysprof</translation>
|
<translation type="gettext">sysprof</translation>
|
||||||
<name>Sysprof</name>
|
<name>Sysprof</name>
|
||||||
<summary>Profiler for an application or entire system</summary>
|
<summary>Profile an application or entire system</summary>
|
||||||
<project_license>GPL-3.0+</project_license>
|
<project_license>GPL-3.0+</project_license>
|
||||||
<project_group>GNOME</project_group>
|
<project_group>GNOME</project_group>
|
||||||
<developer_name>The GNOME Foundation</developer_name>
|
<developer_name>The GNOME Foundation</developer_name>
|
||||||
@ -13,7 +13,7 @@
|
|||||||
</description>
|
</description>
|
||||||
|
|
||||||
<url type="homepage">https://wiki.gnome.org/Apps/Sysprof</url>
|
<url type="homepage">https://wiki.gnome.org/Apps/Sysprof</url>
|
||||||
<url type="bugtracker">https://bugzilla.gnome.org/enter_bug.cgi?product=sysprof</url>
|
<url type="bugtracker">https://gitlab.gnome.org/GNOME/sysprof/issues</url>
|
||||||
<url type="donation">https://www.gnome.org/friends</url>
|
<url type="donation">https://www.gnome.org/friends</url>
|
||||||
|
|
||||||
<screenshots>
|
<screenshots>
|
||||||
@ -32,15 +32,13 @@
|
|||||||
<provides>
|
<provides>
|
||||||
<binary>sysprof</binary>
|
<binary>sysprof</binary>
|
||||||
<binary>sysprof-cli</binary>
|
<binary>sysprof-cli</binary>
|
||||||
<dbus type="system">org.gnome.Sysprof2</dbus>
|
<dbus type="system">org.gnome.Sysprof3</dbus>
|
||||||
</provides>
|
</provides>
|
||||||
|
|
||||||
<releases>
|
<releases>
|
||||||
<release version="3.31.91" date="2019-02-18"/>
|
<release version="3.31.91" date="2019-02-18"/>
|
||||||
<release version="3.31.90" date="2019-02-07"/>
|
|
||||||
<release version="3.31.1" date="2018-10-08"/>
|
|
||||||
</releases>
|
</releases>
|
||||||
|
|
||||||
<metadata_license>CC0-1.0</metadata_license>
|
<metadata_license>CC0-1.0</metadata_license>
|
||||||
<update_contact>christian_AT_hergert.me</update_contact>
|
<update_contact>chergert_AT_redhat.com</update_contact>
|
||||||
</component>
|
</component>
|
||||||
|
|||||||
@ -1,20 +1,28 @@
|
|||||||
# List of source files containing translatable strings.
|
# List of source files containing translatable strings.
|
||||||
# Please keep this file sorted alphabetically.
|
# Please keep this file sorted alphabetically.
|
||||||
data/org.gnome.Sysprof2.appdata.xml.in
|
data/org.gnome.Sysprof3.appdata.xml.in
|
||||||
data/org.gnome.Sysprof2.desktop.in
|
data/org.gnome.Sysprof3.desktop.in
|
||||||
data/org.gnome.sysprof2.gschema.xml
|
data/org.gnome.sysprof3.gschema.xml
|
||||||
data/org.gnome.sysprof2.policy.in
|
data/org.gnome.sysprof3.policy.in
|
||||||
lib/callgraph/sp-callgraph-profile.c
|
src/sysprof/ui/sysprof-window.ui
|
||||||
lib/resources/ui/sp-callgraph-view.ui
|
src/sysprof/gtk/help-overlay.ui
|
||||||
lib/resources/ui/sp-empty-state-view.ui
|
src/libsysprof-ui/ui/sysprof-profiler-menu-button.ui
|
||||||
lib/resources/ui/sp-failed-state-view.ui
|
src/libsysprof-ui/ui/sysprof-callgraph-view.ui
|
||||||
lib/resources/ui/sp-profiler-menu-button.ui
|
src/libsysprof-ui/ui/sysprof-process-model-row.ui
|
||||||
lib/resources/ui/sp-recording-state-view.ui
|
src/libsysprof-ui/ui/sysprof-visualizer-view.ui
|
||||||
lib/sources/sp-perf-source.c
|
src/libsysprof-ui/ui/sysprof-empty-state-view.ui
|
||||||
lib/visualizers/sp-visualizer-list.c
|
src/libsysprof-ui/ui/sysprof-recording-state-view.ui
|
||||||
lib/widgets/sp-profiler-menu-button.c
|
src/libsysprof-ui/ui/sysprof-failed-state-view.ui
|
||||||
src/resources/gtk/help-overlay.ui
|
src/libsysprof-ui/sysprof-callgraph-view.c
|
||||||
src/resources/ui/sp-window.ui
|
src/libsysprof-ui/sysprof-cell-renderer-percent.c
|
||||||
src/sp-application.c
|
src/libsysprof-ui/sysprof-profiler-menu-button.c
|
||||||
src/sp-window.c
|
src/libsysprof-ui/sysprof-visualizer-list.c
|
||||||
tools/sysprof-cli.c
|
src/libsysprof-ui/sysprof-visualizer-ticks.c
|
||||||
|
src/libsysprof-ui/sysprof-visualizer-view.c
|
||||||
|
src/libsysprof-ui/sysprof-zoom-manager.c
|
||||||
|
src/libsysprof/sysprof-callgraph-profile.c
|
||||||
|
src/libsysprof/sysprof-perf-source.c
|
||||||
|
src/sysprof/sysprof-application.c
|
||||||
|
src/sysprof/sysprof-window.c
|
||||||
|
src/sysprof/sysprof.c
|
||||||
|
src/tools/sysprof-cli.c
|
||||||
|
|||||||
@ -439,9 +439,9 @@ get_proxy (void)
|
|||||||
G_DBUS_PROXY_FLAGS_DO_NOT_CONNECT_SIGNALS |
|
G_DBUS_PROXY_FLAGS_DO_NOT_CONNECT_SIGNALS |
|
||||||
G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START_AT_CONSTRUCTION),
|
G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START_AT_CONSTRUCTION),
|
||||||
NULL,
|
NULL,
|
||||||
"org.gnome.Sysprof2",
|
"org.gnome.Sysprof3",
|
||||||
"/org/gnome/Sysprof2",
|
"/org/gnome/Sysprof3",
|
||||||
"org.gnome.Sysprof2",
|
"org.gnome.Sysprof3.Service",
|
||||||
NULL, NULL);
|
NULL, NULL);
|
||||||
|
|
||||||
if (proxy != NULL)
|
if (proxy != NULL)
|
||||||
@ -475,7 +475,7 @@ authorize_proxy (GDBusProxy *proxy)
|
|||||||
if (subject == NULL)
|
if (subject == NULL)
|
||||||
goto failure;
|
goto failure;
|
||||||
|
|
||||||
permission = polkit_permission_new_sync ("org.gnome.sysprof2.perf-event-open", subject, NULL, NULL);
|
permission = polkit_permission_new_sync ("org.gnome.sysprof3.profile", subject, NULL, NULL);
|
||||||
if (permission == NULL)
|
if (permission == NULL)
|
||||||
goto failure;
|
goto failure;
|
||||||
|
|
||||||
|
|||||||
@ -28,15 +28,15 @@ sysprofdconf = configuration_data()
|
|||||||
sysprofdconf.set('sysprofdprivdir', pkglibexecdir)
|
sysprofdconf.set('sysprofdprivdir', pkglibexecdir)
|
||||||
|
|
||||||
configure_file(
|
configure_file(
|
||||||
input: 'org.gnome.Sysprof2.service.in',
|
input: 'org.gnome.Sysprof3.service.in',
|
||||||
output: 'org.gnome.Sysprof2.service',
|
output: 'org.gnome.Sysprof3.service',
|
||||||
configuration: sysprofdconf,
|
configuration: sysprofdconf,
|
||||||
install_dir: join_paths(datadir, 'dbus-1/system-services'),
|
install_dir: join_paths(datadir, 'dbus-1/system-services'),
|
||||||
)
|
)
|
||||||
|
|
||||||
configure_file(
|
configure_file(
|
||||||
input: 'org.gnome.Sysprof2.conf.in',
|
input: 'org.gnome.Sysprof3.conf.in',
|
||||||
output: 'org.gnome.Sysprof2.conf',
|
output: 'org.gnome.Sysprof3.conf',
|
||||||
configuration: sysprofdconf,
|
configuration: sysprofdconf,
|
||||||
install_dir: join_paths(datadir, 'dbus-1/system.d'),
|
install_dir: join_paths(datadir, 'dbus-1/system.d'),
|
||||||
)
|
)
|
||||||
@ -46,8 +46,8 @@ if systemdunitdir == ''
|
|||||||
systemdunitdir = dependency('systemd').get_pkgconfig_variable('systemdsystemunitdir')
|
systemdunitdir = dependency('systemd').get_pkgconfig_variable('systemdsystemunitdir')
|
||||||
endif
|
endif
|
||||||
configure_file(
|
configure_file(
|
||||||
input: 'sysprof2.service.in',
|
input: 'sysprof3.service.in',
|
||||||
output: 'sysprof2.service',
|
output: 'sysprof3.service',
|
||||||
configuration: sysprofdconf,
|
configuration: sysprofdconf,
|
||||||
install_dir: systemdunitdir,
|
install_dir: systemdunitdir,
|
||||||
)
|
)
|
||||||
|
|||||||
@ -1,19 +1,18 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
<!DOCTYPE busconfig PUBLIC
|
<!DOCTYPE busconfig PUBLIC
|
||||||
"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
|
"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
|
||||||
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
|
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
|
||||||
<busconfig>
|
<busconfig>
|
||||||
<!-- Only root can own the service -->
|
<!-- Only root can own the service -->
|
||||||
<policy user="root">
|
<policy user="root">
|
||||||
<allow own="org.gnome.Sysprof2"/>
|
<allow own="org.gnome.Sysprof3"/>
|
||||||
<allow send_destination="org.gnome.Sysprof2"/>
|
<allow send_destination="org.gnome.Sysprof3"/>
|
||||||
<allow receive_sender="org.gnome.Sysprof2"/>
|
<allow receive_sender="org.gnome.Sysprof3"/>
|
||||||
</policy>
|
</policy>
|
||||||
|
|
||||||
<!-- Anyone can send messages to the owner of org.gnome.Sysprof2 -->
|
<!-- Anyone can send messages to the owner of org.gnome.Sysprof3 -->
|
||||||
<policy context="default">
|
<policy context="default">
|
||||||
<allow send_destination="org.gnome.Sysprof2"/>
|
<allow send_destination="org.gnome.Sysprof3"/>
|
||||||
<allow receive_sender="org.gnome.Sysprof2"/>
|
<allow receive_sender="org.gnome.Sysprof3"/>
|
||||||
</policy>
|
</policy>
|
||||||
</busconfig>
|
</busconfig>
|
||||||
@ -1,5 +1,5 @@
|
|||||||
[D-BUS Service]
|
[D-BUS Service]
|
||||||
Name=org.gnome.Sysprof2
|
Name=org.gnome.Sysprof3
|
||||||
Exec=@sysprofdprivdir@/sysprofd
|
Exec=@sysprofdprivdir@/sysprofd
|
||||||
User=root
|
User=root
|
||||||
SystemdService=sysprof2.service
|
SystemdService=sysprof3.service
|
||||||
@ -3,6 +3,6 @@ Description=Sysprof Daemon
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=dbus
|
Type=dbus
|
||||||
BusName=org.gnome.Sysprof2
|
BusName=org.gnome.Sysprof3
|
||||||
ExecStart=@sysprofdprivdir@/sysprofd
|
ExecStart=@sysprofdprivdir@/sysprofd
|
||||||
|
|
||||||
Reference in New Issue
Block a user