mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
Update GUI after showing error message.
2005-11-01 Soeren Sandmann <sandmann@redhat.com> * sysprof.c (on_start_toggled): Update GUI after showing error message. * sysprof.glade: Rename File menu Profiler, move Start/Profile/Reset here, delete View menu.
This commit is contained in:
committed by
Søren Sandmann Pedersen
parent
c778a1b1ec
commit
4f270a0f48
@ -1,3 +1,11 @@
|
|||||||
|
2005-11-01 Soeren Sandmann <sandmann@redhat.com>
|
||||||
|
|
||||||
|
* sysprof.c (on_start_toggled): Update GUI after showing error
|
||||||
|
message.
|
||||||
|
|
||||||
|
* sysprof.glade: Rename File menu Profiler, move
|
||||||
|
Start/Profile/Reset here, delete View menu.
|
||||||
|
|
||||||
Mon Oct 31 23:41:33 2005 Soeren Sandmann <sandmann@redhat.com>
|
Mon Oct 31 23:41:33 2005 Soeren Sandmann <sandmann@redhat.com>
|
||||||
|
|
||||||
* stackstash.h (struct StackNode): Add "total" field.
|
* stackstash.h (struct StackNode): Add "total" field.
|
||||||
|
|||||||
3
TODO
3
TODO
@ -117,7 +117,8 @@ Before 1.2:
|
|||||||
* Send entire stack to user space, then do stackwalking there. That would
|
* Send entire stack to user space, then do stackwalking there. That would
|
||||||
allow us to do more complex algorithms, like dwarf, in userspace. Though
|
allow us to do more complex algorithms, like dwarf, in userspace. Though
|
||||||
we'd lose the ability to do non-racy file naming. We could pass a list
|
we'd lose the ability to do non-racy file naming. We could pass a list
|
||||||
of the process mappings with each stack though.
|
of the process mappings with each stack though. Doing this would also solve
|
||||||
|
the problem of not being able to get maps of processes running as root.
|
||||||
|
|
||||||
* If interrupt happens in kernel mode, send both
|
* If interrupt happens in kernel mode, send both
|
||||||
kernel stack and user space stack, have userspace stitch them
|
kernel stack and user space stack, have userspace stitch them
|
||||||
|
|||||||
@ -350,11 +350,11 @@ on_start_toggled (GtkWidget *widget, gpointer data)
|
|||||||
" modprobe sysprof-module\n"
|
" modprobe sysprof-module\n"
|
||||||
"\n"
|
"\n"
|
||||||
"as root.");
|
"as root.");
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
else
|
||||||
app->state = PROFILING;
|
{
|
||||||
|
app->state = PROFILING;
|
||||||
|
}
|
||||||
|
|
||||||
update_sensitivity (app);
|
update_sensitivity (app);
|
||||||
}
|
}
|
||||||
|
|||||||
155
sysprof.glade
155
sysprof.glade
@ -32,12 +32,81 @@
|
|||||||
<child>
|
<child>
|
||||||
<widget class="GtkMenuItem" id="menuitem1">
|
<widget class="GtkMenuItem" id="menuitem1">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="label" translatable="yes">_File</property>
|
<property name="label" translatable="yes">_Profiler</property>
|
||||||
<property name="use_underline">True</property>
|
<property name="use_underline">True</property>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkMenu" id="menuitem1_menu">
|
<widget class="GtkMenu" id="menuitem1_menu">
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<widget class="GtkImageMenuItem" id="start_item">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="label" translatable="yes">_Start</property>
|
||||||
|
<property name="use_underline">True</property>
|
||||||
|
<signal name="activate" handler="on_start1_activate" last_modification_time="Thu, 04 Nov 2004 18:51:54 GMT"/>
|
||||||
|
|
||||||
|
<child internal-child="image">
|
||||||
|
<widget class="GtkImage" id="image98">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="stock">gtk-media-play</property>
|
||||||
|
<property name="icon_size">1</property>
|
||||||
|
<property name="xalign">0.5</property>
|
||||||
|
<property name="yalign">0.5</property>
|
||||||
|
<property name="xpad">0</property>
|
||||||
|
<property name="ypad">0</property>
|
||||||
|
</widget>
|
||||||
|
</child>
|
||||||
|
</widget>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<widget class="GtkImageMenuItem" id="profile_item">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="label" translatable="yes">_Profile</property>
|
||||||
|
<property name="use_underline">True</property>
|
||||||
|
<signal name="activate" handler="on_profile1_activate" last_modification_time="Thu, 04 Nov 2004 18:51:54 GMT"/>
|
||||||
|
|
||||||
|
<child internal-child="image">
|
||||||
|
<widget class="GtkImage" id="image99">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="stock">gtk-justify-left</property>
|
||||||
|
<property name="icon_size">1</property>
|
||||||
|
<property name="xalign">0.5</property>
|
||||||
|
<property name="yalign">0.5</property>
|
||||||
|
<property name="xpad">0</property>
|
||||||
|
<property name="ypad">0</property>
|
||||||
|
</widget>
|
||||||
|
</child>
|
||||||
|
</widget>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<widget class="GtkImageMenuItem" id="reset_item">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="label" translatable="yes">_Reset</property>
|
||||||
|
<property name="use_underline">True</property>
|
||||||
|
<signal name="activate" handler="on_reset_item_activate" last_modification_time="Fri, 05 Nov 2004 15:34:30 GMT"/>
|
||||||
|
|
||||||
|
<child internal-child="image">
|
||||||
|
<widget class="GtkImage" id="image100">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="stock">gtk-clear</property>
|
||||||
|
<property name="icon_size">1</property>
|
||||||
|
<property name="xalign">0.5</property>
|
||||||
|
<property name="yalign">0.5</property>
|
||||||
|
<property name="xpad">0</property>
|
||||||
|
<property name="ypad">0</property>
|
||||||
|
</widget>
|
||||||
|
</child>
|
||||||
|
</widget>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<widget class="GtkSeparatorMenuItem" id="separator1">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
</widget>
|
||||||
|
</child>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkImageMenuItem" id="open_item">
|
<widget class="GtkImageMenuItem" id="open_item">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
@ -47,7 +116,7 @@
|
|||||||
<accelerator key="o" modifiers="GDK_CONTROL_MASK" signal="activate"/>
|
<accelerator key="o" modifiers="GDK_CONTROL_MASK" signal="activate"/>
|
||||||
|
|
||||||
<child internal-child="image">
|
<child internal-child="image">
|
||||||
<widget class="GtkImage" id="image80">
|
<widget class="GtkImage" id="image101">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="stock">gtk-open</property>
|
<property name="stock">gtk-open</property>
|
||||||
<property name="icon_size">1</property>
|
<property name="icon_size">1</property>
|
||||||
@ -69,7 +138,7 @@
|
|||||||
<accelerator key="s" modifiers="GDK_CONTROL_MASK | GDK_SHIFT_MASK" signal="activate"/>
|
<accelerator key="s" modifiers="GDK_CONTROL_MASK | GDK_SHIFT_MASK" signal="activate"/>
|
||||||
|
|
||||||
<child internal-child="image">
|
<child internal-child="image">
|
||||||
<widget class="GtkImage" id="image81">
|
<widget class="GtkImage" id="image102">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="stock">gtk-save-as</property>
|
<property name="stock">gtk-save-as</property>
|
||||||
<property name="icon_size">1</property>
|
<property name="icon_size">1</property>
|
||||||
@ -97,7 +166,7 @@
|
|||||||
<accelerator key="q" modifiers="GDK_CONTROL_MASK" signal="activate"/>
|
<accelerator key="q" modifiers="GDK_CONTROL_MASK" signal="activate"/>
|
||||||
|
|
||||||
<child internal-child="image">
|
<child internal-child="image">
|
||||||
<widget class="GtkImage" id="image82">
|
<widget class="GtkImage" id="image103">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="stock">gtk-quit</property>
|
<property name="stock">gtk-quit</property>
|
||||||
<property name="icon_size">1</property>
|
<property name="icon_size">1</property>
|
||||||
@ -114,82 +183,6 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
<child>
|
|
||||||
<widget class="GtkMenuItem" id="menuitem3">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="label" translatable="yes">_View</property>
|
|
||||||
<property name="use_underline">True</property>
|
|
||||||
|
|
||||||
<child>
|
|
||||||
<widget class="GtkMenu" id="menuitem3_menu">
|
|
||||||
|
|
||||||
<child>
|
|
||||||
<widget class="GtkImageMenuItem" id="start_item">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="label" translatable="yes">_Start</property>
|
|
||||||
<property name="use_underline">True</property>
|
|
||||||
<signal name="activate" handler="on_start1_activate" last_modification_time="Thu, 04 Nov 2004 18:51:54 GMT"/>
|
|
||||||
|
|
||||||
<child internal-child="image">
|
|
||||||
<widget class="GtkImage" id="image83">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="stock">gtk-media-play</property>
|
|
||||||
<property name="icon_size">1</property>
|
|
||||||
<property name="xalign">0.5</property>
|
|
||||||
<property name="yalign">0.5</property>
|
|
||||||
<property name="xpad">0</property>
|
|
||||||
<property name="ypad">0</property>
|
|
||||||
</widget>
|
|
||||||
</child>
|
|
||||||
</widget>
|
|
||||||
</child>
|
|
||||||
|
|
||||||
<child>
|
|
||||||
<widget class="GtkImageMenuItem" id="profile_item">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="label" translatable="yes">_Profile</property>
|
|
||||||
<property name="use_underline">True</property>
|
|
||||||
<signal name="activate" handler="on_profile1_activate" last_modification_time="Thu, 04 Nov 2004 18:51:54 GMT"/>
|
|
||||||
|
|
||||||
<child internal-child="image">
|
|
||||||
<widget class="GtkImage" id="image84">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="stock">gtk-justify-left</property>
|
|
||||||
<property name="icon_size">1</property>
|
|
||||||
<property name="xalign">0.5</property>
|
|
||||||
<property name="yalign">0.5</property>
|
|
||||||
<property name="xpad">0</property>
|
|
||||||
<property name="ypad">0</property>
|
|
||||||
</widget>
|
|
||||||
</child>
|
|
||||||
</widget>
|
|
||||||
</child>
|
|
||||||
|
|
||||||
<child>
|
|
||||||
<widget class="GtkImageMenuItem" id="reset_item">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="label" translatable="yes">_Reset</property>
|
|
||||||
<property name="use_underline">True</property>
|
|
||||||
<signal name="activate" handler="on_reset_item_activate" last_modification_time="Fri, 05 Nov 2004 15:34:30 GMT"/>
|
|
||||||
|
|
||||||
<child internal-child="image">
|
|
||||||
<widget class="GtkImage" id="image85">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="stock">gtk-clear</property>
|
|
||||||
<property name="icon_size">1</property>
|
|
||||||
<property name="xalign">0.5</property>
|
|
||||||
<property name="yalign">0.5</property>
|
|
||||||
<property name="xpad">0</property>
|
|
||||||
<property name="ypad">0</property>
|
|
||||||
</widget>
|
|
||||||
</child>
|
|
||||||
</widget>
|
|
||||||
</child>
|
|
||||||
</widget>
|
|
||||||
</child>
|
|
||||||
</widget>
|
|
||||||
</child>
|
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkMenuItem" id="menuitem4">
|
<widget class="GtkMenuItem" id="menuitem4">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
@ -207,7 +200,7 @@
|
|||||||
<signal name="activate" handler="on_about_activate" last_modification_time="Wed, 31 Dec 2003 20:44:40 GMT"/>
|
<signal name="activate" handler="on_about_activate" last_modification_time="Wed, 31 Dec 2003 20:44:40 GMT"/>
|
||||||
|
|
||||||
<child internal-child="image">
|
<child internal-child="image">
|
||||||
<widget class="GtkImage" id="image86">
|
<widget class="GtkImage" id="image104">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="stock">gtk-about</property>
|
<property name="stock">gtk-about</property>
|
||||||
<property name="icon_size">1</property>
|
<property name="icon_size">1</property>
|
||||||
|
|||||||
Reference in New Issue
Block a user