*** empty log message ***

This commit is contained in:
Søren Sandmann Pedersen
2004-11-21 23:33:56 +00:00
parent a0100c8865
commit 7f02ecd503
3 changed files with 11 additions and 3 deletions

4
TODO
View File

@ -13,6 +13,10 @@
- Port to GtkAction
- If we can't get a name, look in /proc/<pid>/status
- Charge 'self' properly to processes that don't get any stack trace at all
DONE:
- consider making ProfileObject more of an object.

View File

@ -130,8 +130,12 @@ create_process (const char *cmdline, int pid)
Process *p;
p = g_new (Process, 1);
p->cmdline = g_strdup_printf ("[%s]", cmdline);
if (*cmdline != '\0')
p->cmdline = g_strdup_printf ("[%s]", cmdline);
else
p->cmdline = g_strdup_printf ("[pid %d]", pid);
p->bad_pages = NULL;
p->maps = NULL;
p->pid = pid;

View File

@ -304,7 +304,7 @@ on_timer(unsigned long dong)
{
struct task_struct *p;
static const int cpu_profiler = 0; /* set to 0 to profile disk */
static const int cpu_profiler = 1; /* set to 0 to profile disk */
for_each_process (p) {
if (p->state == (cpu_profiler? TASK_RUNNING : TASK_UNINTERRUPTIBLE))