mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 08:00:53 +00:00
+2008-03-23 Soren Sandmann <sandmann@daimi.au.dk>
+ + * sysprof.c (queue_show_samples): Update samples immediately when + reset and start is clicked. + svn path=/trunk/; revision=402
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2008-03-23 Soren Sandmann <sandmann@daimi.au.dk>
|
||||||
|
|
||||||
|
* sysprof.c (queue_show_samples): Update samples immediately when
|
||||||
|
reset and start is clicked.
|
||||||
|
|
||||||
2008-03-20 Soren Sandmann <sandmann@redhat.com>
|
2008-03-20 Soren Sandmann <sandmann@redhat.com>
|
||||||
|
|
||||||
* module/sysprof-module.c (trace_kernel): Use kernel builtin
|
* module/sysprof-module.c (trace_kernel): Use kernel builtin
|
||||||
|
|||||||
21
sysprof.c
21
sysprof.c
@ -105,10 +105,9 @@ struct Application
|
|||||||
|
|
||||||
static void update_screenshot_window (Application *app);
|
static void update_screenshot_window (Application *app);
|
||||||
|
|
||||||
static gboolean
|
static void
|
||||||
show_samples_timeout (gpointer data)
|
show_samples (Application *app)
|
||||||
{
|
{
|
||||||
Application *app = data;
|
|
||||||
char *label;
|
char *label;
|
||||||
int n_samples;
|
int n_samples;
|
||||||
|
|
||||||
@ -136,6 +135,14 @@ show_samples_timeout (gpointer data)
|
|||||||
gtk_label_set_label (GTK_LABEL (app->samples_label), label);
|
gtk_label_set_label (GTK_LABEL (app->samples_label), label);
|
||||||
|
|
||||||
g_free (label);
|
g_free (label);
|
||||||
|
}
|
||||||
|
|
||||||
|
static gboolean
|
||||||
|
show_samples_timeout (gpointer data)
|
||||||
|
{
|
||||||
|
Application *app = data;
|
||||||
|
|
||||||
|
show_samples (app);
|
||||||
|
|
||||||
app->timeout_id = 0;
|
app->timeout_id = 0;
|
||||||
|
|
||||||
@ -246,7 +253,7 @@ update_sensitivity (Application *app)
|
|||||||
gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (app->screenshot_item),
|
gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (app->screenshot_item),
|
||||||
app->screenshot_window_visible);
|
app->screenshot_window_visible);
|
||||||
|
|
||||||
queue_show_samples (app);
|
show_samples (app);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -316,8 +323,6 @@ delete_data (Application *app)
|
|||||||
|
|
||||||
collector_reset (app->collector);
|
collector_reset (app->collector);
|
||||||
|
|
||||||
queue_show_samples (app);
|
|
||||||
|
|
||||||
app->profile_from_file = FALSE;
|
app->profile_from_file = FALSE;
|
||||||
set_application_title (app, NULL);
|
set_application_title (app, NULL);
|
||||||
}
|
}
|
||||||
@ -373,6 +378,8 @@ on_start_toggled (GtkWidget *widget, gpointer data)
|
|||||||
delete_data (app);
|
delete_data (app);
|
||||||
|
|
||||||
app->state = PROFILING;
|
app->state = PROFILING;
|
||||||
|
|
||||||
|
show_samples (app);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -637,7 +644,7 @@ ensure_profile (Application *app)
|
|||||||
fill_lists (app);
|
fill_lists (app);
|
||||||
|
|
||||||
app->state = DISPLAYING;
|
app->state = DISPLAYING;
|
||||||
|
|
||||||
update_sensitivity (app);
|
update_sensitivity (app);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user