mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-09 14:40:54 +00:00
libsysprof-gtk: reduce overhead of test charts
This commit is contained in:
@ -130,6 +130,8 @@ main (int argc,
|
|||||||
if (!(document = sysprof_document_loader_load (loader, NULL, &error)))
|
if (!(document = sysprof_document_loader_load (loader, NULL, &error)))
|
||||||
g_error ("Failed to load document: %s", error->message);
|
g_error ("Failed to load document: %s", error->message);
|
||||||
|
|
||||||
|
g_print ("loaded\n");
|
||||||
|
|
||||||
session = sysprof_session_new (document);
|
session = sysprof_session_new (document);
|
||||||
time_span = sysprof_document_get_time_span (document);
|
time_span = sysprof_document_get_time_span (document);
|
||||||
|
|
||||||
@ -151,6 +153,8 @@ main (int argc,
|
|||||||
for (guint i = 0; i < 100; i++)
|
for (guint i = 0; i < 100; i++)
|
||||||
sysprof_xy_series_add (num_series, i, g_random_int_range (0, 100), 0);
|
sysprof_xy_series_add (num_series, i, g_random_int_range (0, 100), 0);
|
||||||
|
|
||||||
|
g_print ("series built\n");
|
||||||
|
|
||||||
window = g_object_new (GTK_TYPE_WINDOW,
|
window = g_object_new (GTK_TYPE_WINDOW,
|
||||||
"default-width", 800,
|
"default-width", 800,
|
||||||
"default-height", 600,
|
"default-height", 600,
|
||||||
@ -188,12 +192,12 @@ main (int argc,
|
|||||||
NULL);
|
NULL);
|
||||||
split = g_object_new (SYSPROF_TYPE_SPLIT_LAYER,
|
split = g_object_new (SYSPROF_TYPE_SPLIT_LAYER,
|
||||||
"top", g_object_new (SYSPROF_TYPE_LINE_LAYER,
|
"top", g_object_new (SYSPROF_TYPE_LINE_LAYER,
|
||||||
"series", samples_series,
|
"series", num_series,
|
||||||
"title", "Stack Depth as Line",
|
"title", "Stack Depth as Line",
|
||||||
"fill", TRUE,
|
"fill", TRUE,
|
||||||
NULL),
|
NULL),
|
||||||
"bottom", g_object_new (SYSPROF_TYPE_LINE_LAYER,
|
"bottom", g_object_new (SYSPROF_TYPE_LINE_LAYER,
|
||||||
"series", samples_series,
|
"series", num_series,
|
||||||
"title", "Stack Depth as Line",
|
"title", "Stack Depth as Line",
|
||||||
"flip-y", TRUE,
|
"flip-y", TRUE,
|
||||||
NULL),
|
NULL),
|
||||||
|
|||||||
Reference in New Issue
Block a user