2007-11-16 Soren Sandmann <sandmann@daimi.au.dk>
+ * module/sysprof-module.c (n_traces_available): Formatting
+
+ * module/sysprof-module.c (sysprof_poll): Require 16 traces rather
+ than 8.
+
+2007-11-16 Soren Sandmann <sandmann@daimi.au.dk>
+
* TODO: updates
* module/sysprof-module.c (sysprof_poll): Only select readable
static void
collect_traces (Collector *collector)
{
+ int n;
+
/* After a reset we ignore samples for a short period so that
* a reset will actually cause 'samples' to become 0
*/
}
static int
-n_traces_available (SysprofStackTrace *tail)
+n_traces_available(SysprofStackTrace *tail)
{
SysprofStackTrace *head = &(area->traces[area->head]);
{
SysprofStackTrace *tail = file->private_data;
- if (n_traces_available (tail) >= 8)
+ if (n_traces_available (tail) >= 16)
return POLLIN | POLLRDNORM;
poll_wait(file, &wait_for_trace, poll_table);
- if (n_traces_available (tail) >= 8)
+ if (n_traces_available (tail) >= 16)
return POLLIN | POLLRDNORM;
return 0;