texmacs-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Texmacs-dev] Lock on SVN


From: Gubinelli Massimiliano
Subject: Re: [Texmacs-dev] Lock on SVN
Date: Mon, 15 Dec 2008 17:21:12 +0100

Hi,

I'm looking at the code on the mac using Instruments (/Developer/ Applications/Instruments.app) and in particular the ObjectAlloc instrument. For the moment I can only see an anomalous allocation of small blocks from Qt (25 Mb, steadly growing each time I scroll up and down). It
seems related to the menu bar changing during the scroll.

This is part of the result of running qt-temacs and performin some scrolls on the help page. The first column is the stack depth and the total allocated memory at that level. Going down we follow the path which show most of the allocations. As you see of 25 Mb of allocated memory, 17 Mb are due to calls inside QMacPixmapData::macCreatePixels() which is used in the Qt/Mac menu handling code (as far as I understand from the stack below).

Do you have any idea of the origin of the leak? I've tried to disable the code which change the menu/toolbars in qt_widget.cpp but this didn't had any effect on the memory consumption.

best
max


output from Instruments follows:

  34    25.05 Mb     * All Allocations * :0
  33 texmacs.bin   25.05 Mb     start
  32 texmacs.bin   25.05 Mb     main Texmacs/Texmacs/texmacs.cpp:301
31 texmacs.bin 25.05 Mb start_guile(int, char**, void (*) (int, char**))
  30 libguile.17.dylib   25.05 Mb     scm_boot_guile
  29 libguile.17.dylib   25.05 Mb     scm_with_guile
  28 libguile.17.dylib   25.05 Mb     scm_i_with_guile_and_parent
  27 libguile.17.dylib   25.05 Mb     scm_c_with_continuation_barrier
  26 libguile.17.dylib   25.05 Mb     scm_i_with_continuation_barrier
  25 libguile.17.dylib   25.05 Mb     scm_c_catch
  24 libguile.17.dylib   25.05 Mb     c_body
  23 libguile.17.dylib   25.05 Mb     invoke_main_func
  22 texmacs.bin   25.05 Mb     new_call_back(void*, int, char**)
  21 texmacs.bin   25.05 Mb     TeXmacs_main(int, char**)
  20 texmacs.bin   25.05 Mb     gui_start_loop()
19 texmacs.bin 25.05 Mb qt_gui_rep::event_loop() Plugins/Qt/ qt_gui.cpp:196 18 QtCore 20.66 Mb QCoreApplication::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) 17 QtGui 20.66 Mb QEventDispatcherMac ::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) 16 QtCore 18.95 Mb QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) 15 QtCore 18.95 Mb QCoreApplication::notifyInternal(QObject*, QEvent*)
  14 QtGui   18.95 Mb     QApplication::notify(QObject*, QEvent*)
13 QtGui 18.95 Mb QApplicationPrivate::notify_helper(QObject*, QEvent*)
  12 QtGui   18.86 Mb     QMenu::event(QEvent*)
  11 QtGui   18.86 Mb     QWidget::event(QEvent*)
  10 QtGui   18.86 Mb     QWidget::ensurePolished() const
9 QtCore 18.86 Mb QCoreApplication::notifyInternal(QObject*, QEvent*)
   8 QtGui   18.86 Mb     QApplication::notify(QObject*, QEvent*)
7 QtGui 18.86 Mb QApplicationPrivate::notify_helper(QObject*, QEvent*)
   6 QtGui   18.86 Mb     QMenu::event(QEvent*)
   5 QtGui   18.86 Mb     QWidget::event(QEvent*)
   4 QtGui   18.79 Mb     QMacStyle::polish(QWidget*)
   3 QtGui   18.09 Mb     QPixmap::QPixmap(int, int)
   2 QtGui   18.09 Mb     QPixmap::init(int, int, int)
   1 QtGui   17.97 Mb     QMacPixmapData::macCreatePixels()


On 15 déc. 08, at 17:11, Joris van der Hoeven wrote:

On Mon, Dec 15, 2008 at 04:59:43PM +0100, Gubinelli Massimiliano wrote:
I've to commit a small change to qt_menu.cpp to correct a compilation
error. can I do it?

Yes please. Please keep tuned: I have some questions about
your memory management.


_______________________________________________
Texmacs-dev mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/texmacs-dev





reply via email to

[Prev in Thread] Current Thread [Next in Thread]