Comment 15 for bug 109943

Revision history for this message
John McPherson (jrm+launchpadbugs) wrote :

$ dpkg -l thunderbird | cat
ii thunderbird 3.0.4+nobinonly-0ubuntu4
$ ps ufax | grep thunderbird
mcp 2166 31.1 18.8 378524 89864 ? Sl 10:40 17:32 \_ /usr/lib/thunderbird-3.0.4/thunderbird-bin
$ strace -p 2166 2>&1 | head -n 20
Process 2166 attached - interrupt to quit
restart_syscall(<... resuming interrupted call ...>) = 1
gettimeofday({1273620600, 759410}, NULL) = 0
read(19, "\372", 1) = 1
gettimeofday({1273620600, 759608}, NULL) = 0
gettimeofday({1273620600, 759691}, NULL) = 0
write(20, "\372", 1) = 1
gettimeofday({1273620600, 760352}, NULL) = 0
gettimeofday({1273620600, 760412}, NULL) = 0
gettimeofday({1273620600, 760465}, NULL) = 0
futex(0xb75e5588, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0xb75e5584, {FUTEX_OP_SET, 0, FUTEX_OP_CMP_GT, 1}) = 1
gettimeofday({1273620600, 760628}, NULL) = 0
gettimeofday({1273620600, 760763}, NULL) = 0
gettimeofday({1273620600, 760819}, NULL) = 0
gettimeofday({1273620600, 760880}, NULL) = 0
gettimeofday({1273620600, 761036}, NULL) = 0
gettimeofday({1273620600, 761090}, NULL) = 0
gettimeofday({1273620600, 761149}, NULL) = 0
gettimeofday({1273620600, 761212}, NULL) = 0
gettimeofday({1273620600, 761851}, NULL) = 0

It looks like the animation code is doing something very inefficient if it's calling gettimeofday() thousands of times per second.