[Qt-creator] Polling and running in circles
Agnostic Pope
agnosticpope at gmail.com
Thu Mar 19 19:08:38 CET 2009
Shot in the dark...
Creator typically lets me know when my files are changed by an external
process. Unless there's some interrupt driven way of doing it, my guess is
that it does reads to the filesystem. I make no claim to be right;)
--James
On Thu, Mar 19, 2009 at 11:16 AM, Adam Majer <adamm at zombino.com> wrote:
> This is an strace of qt creator in Debian. I don't know what it is
> trying to do, but it is using about 2% of CPU doing it.
>
> /etc/localtime, as far as I know, is a copy of the timezone data. It
> should not change often, so why continued requests on it?
>
> But more importantly, the other read() requests and poll is looping
> rather fast. Any ideas where this is coming from?
>
>
> poll([{fd=3, events=POLLIN}, {fd=11, events=POLLIN|POLLPRI}, {fd=13,
> events=POLLIN|POLLPRI}, {fd=14, events=POLLIN|POLLPRI}, {fd=15,
> events=POLLIN|POLLPRI}, {fd=16, events=POLLIN}, {fd=17, events=POLLIN},
> {fd=7, events=POLLIN}, {fd=19, events=POLLIN}], 9, 0) = 0 (Timeout)
>
> read(7, 0x2538624, 4096) = -1 EAGAIN (Resource
> temporarily unavailable)
>
> stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2865, ...}) = 0
>
> read(7, 0x2538624, 4096) = -1 EAGAIN (Resource
> temporarily unavailable)
>
> read(16, 0x25e7374, 4096) = -1 EAGAIN (Resource
> temporarily unavailable)
>
>
> - Adam
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20090319/23b82d4b/attachment.html
More information about the Qt-creator-old
mailing list