since I can't find the -dbg package for it, I can't see a nice callgraph
from sysprof...

Looked at the source for indicator-applet and indicator-message, found
one place where there's a timeout in src/im-menu-item.c in indicator-
message and that timeout happens to be 60 seconds.

I noticed that there's a time_update_min which is being checked but
never set, maybe it should be?

        if (priv->time_update_min == 0) {
                g_timeout_add_seconds(60, time_update_cb, self);
        }

time_update_cb returns TRUE, so the timer is never automatically
removed, which means you will have lots and lots of timer eventually if
you have it running for a long time.

-- 
indicator-applet guzzles CPU
https://bugs.launchpad.net/bugs/365187
You received this bug notification because you are a member of Indicator
Applet Developers, which is the registrant for Indicator Applet.

Status in Indicator Applet: Incomplete

Bug description:
On a system up for roughly 6 days, indicator-applet had used over 200 minutes 
of CPU time. This is a portable system, so it's also wasting battery runtime. 
Considering the rather limited scope of what indicator-applet does, it should 
be consuming 2-3 orders of magnitude less CPU time. 

4911 brianr    20   0 31740  13m 5804 R   91  0.7 208:45.69
   indicator-apple

(To put things in perspective, the X server on this same machine has racked up 
only 332 minutes of CPU time).

_______________________________________________
Mailing list: https://launchpad.net/~dx-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~dx-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to