mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
Hey, it appears to not crash
This commit is contained in:
@ -106,9 +106,15 @@ on_read (gpointer data)
|
||||
Application *app = data;
|
||||
SysprofStackTrace trace;
|
||||
int rd;
|
||||
int i;
|
||||
|
||||
rd = read (app->input_fd, &trace, sizeof (trace));
|
||||
|
||||
g_print ("pid: %d\n", trace.pid);
|
||||
for (i=0; i < trace.n_addresses; ++i)
|
||||
g_print ("rd: %08x\n", trace.addresses[i]);
|
||||
g_print ("-=-\n");
|
||||
|
||||
if (rd > 0 && app->profiling && !app->generating_profile)
|
||||
{
|
||||
Process *process = process_get_from_pid (trace.pid);
|
||||
|
||||
Reference in New Issue
Block a user