mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
*** empty log message ***
This commit is contained in:
4
TODO
4
TODO
@ -13,6 +13,10 @@
|
|||||||
|
|
||||||
- Port to GtkAction
|
- 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:
|
DONE:
|
||||||
|
|
||||||
- consider making ProfileObject more of an object.
|
- consider making ProfileObject more of an object.
|
||||||
|
|||||||
@ -130,8 +130,12 @@ create_process (const char *cmdline, int pid)
|
|||||||
Process *p;
|
Process *p;
|
||||||
|
|
||||||
p = g_new (Process, 1);
|
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->bad_pages = NULL;
|
||||||
p->maps = NULL;
|
p->maps = NULL;
|
||||||
p->pid = pid;
|
p->pid = pid;
|
||||||
|
|||||||
@ -304,7 +304,7 @@ on_timer(unsigned long dong)
|
|||||||
{
|
{
|
||||||
struct task_struct *p;
|
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) {
|
for_each_process (p) {
|
||||||
if (p->state == (cpu_profiler? TASK_RUNNING : TASK_UNINTERRUPTIBLE))
|
if (p->state == (cpu_profiler? TASK_RUNNING : TASK_UNINTERRUPTIBLE))
|
||||||
|
|||||||
Reference in New Issue
Block a user