Revert accidental commit of stackstash reorganisation

This commit is contained in:
Søren Sandmann Pedersen
2005-10-01 05:23:58 +00:00
parent cc1055d105
commit f7e888e574
8 changed files with 131 additions and 100 deletions

View File

@ -266,7 +266,7 @@ time_diff (const GTimeVal *first,
return first_ms - second_ms;
}
#define RESET_DEAD_PERIOD 5
#define RESET_DEAD_PERIOD 25
static void
on_read (gpointer data)
@ -302,8 +302,24 @@ on_read (gpointer data)
if (rd > 0 && !app->generating_profile)
{
add_trace_to_stash (&trace, app->stash);
Process *process = process_get_from_pid (trace.pid);
int i;
/* char *filename = NULL; */
/* if (*trace.filename) */
/* filename = trace.filename; */
for (i = 0; i < trace.n_addresses; ++i)
{
process_ensure_map (process, trace.pid,
(gulong)trace.addresses[i]);
}
g_assert (!app->generating_profile);
stack_stash_add_trace (
app->stash, process,
(gulong *)trace.addresses, trace.n_addresses, 1);
app->n_samples++;
}