mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
Increase the max number of addresses to 1021, reorganise SysprofMmapArea
2006-10-26 Soren Sandmann <sandmann@daimi.au.dk> * module/sysprof-module.h (struct SysprofStackTrace): Increase the max number of addresses to 1021, reorganise SysprofMmapArea to make the traces naturally page aligned. * TODO: Update
This commit is contained in:
committed by
Søren Sandmann Pedersen
parent
e7415d4492
commit
9a1ed3d336
17
process.c
17
process.c
@ -49,14 +49,14 @@ struct Map
|
||||
|
||||
struct Process
|
||||
{
|
||||
char *cmdline;
|
||||
char * cmdline;
|
||||
|
||||
int n_maps;
|
||||
Map *maps;
|
||||
int n_maps;
|
||||
Map * maps;
|
||||
|
||||
GList *bad_pages;
|
||||
GList * bad_pages;
|
||||
|
||||
int pid;
|
||||
int pid;
|
||||
|
||||
const char *undefined;
|
||||
};
|
||||
@ -352,10 +352,6 @@ get_statname (int pid)
|
||||
char *stat;
|
||||
char *filename = idle_free (g_strdup_printf ("/proc/%d/stat", pid));
|
||||
|
||||
#if 0
|
||||
g_print ("stat %d\n", pid);
|
||||
#endif
|
||||
|
||||
if (g_file_get_contents (filename, &stat, NULL, NULL))
|
||||
{
|
||||
char result[200];
|
||||
@ -365,9 +361,6 @@ get_statname (int pid)
|
||||
if (sscanf (stat, "%*d %200s %*s", result) == 1)
|
||||
return g_strndup (result, 200);
|
||||
}
|
||||
#if 0
|
||||
g_print ("return null\n");
|
||||
#endif
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user