[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Re: koffice/kspread
From:       "Robert Knight" <robertknight () gmail ! com>
Date:       2006-10-16 10:48:36
Message-ID: 13ed09c00610160348w630b5e7al74482560eebd664c () mail ! gmail ! com
[Download RAW message or body]

Run the program though callgrind.  It will be slow but it will also
give you extremely good data - and you only have to perform the run
once to get the data (and then again after making changes based on
that data).

Most importantly it gives you a call tree rather than a flat list and
an accurate count of how many times various functions are called -
which is perhaps the most useful indicator of a program doing
something it should not be doing.  QTime wall-clock profiling doesn't
provide this information.

Regards,
Robert.

On 15/10/06, Tomas Mecir <mecirt@gmail.com> wrote:
> 2006/10/14, Stefan Nikolaus <stefan.nikolaus@kdemail.net>:
> > @Tomas:         My impression is, that the painting becomes faster that way, but
> >                 maybe I'm wrong again. :( Could you check this on your machine?
>
> One more thing. The painting itself IS fast here - the slow part is
> somewhere else, as the debug output from KSpread looks like this:
>
> kspread: *** (Painting cells) Elapsed time 0 min, 0 sec, 125 msec
> kspread (Painting): setRegionPaintDirty A1:B3
> kspread: *** (Painting cells) Elapsed time 0 min, 0 sec, 130 msec
> kspread (Painting): setRegionPaintDirty A2:B4
> kspread: *** (Painting cells) Elapsed time 0 min, 0 sec, 149 msec
> kspread (Painting): setRegionPaintDirty A1:G4;A3:G17
> kspread: *** (Painting cells) Elapsed time 0 min, 0 sec, 321 msec
> kspread (Painting): setRegionPaintDirty A1:G17;A20:B22
> kspread: *** (Painting cells) Elapsed time 0 min, 0 sec, 127 msec
> kspread (Painting): setRegionPaintDirty
> kspread: *** (Painting cells) Elapsed time 0 min, 0 sec, 140 msec
> kspread (Painting): setRegionPaintDirty A20:H22;A1:H21
> kspread: *** (Painting cells) Elapsed time 0 min, 0 sec, 117 msec
> kspread: *** (Painting cells) Elapsed time 0 min, 0 sec, 151 msec
> kspread: *** (Painting cells) Elapsed time 0 min, 0 sec, 145 msec
> kparts: 0x8149710 emitting activePartChanged (nil)
> kspread (Painting): setRegionPaintDirty A1:L24
> kspread: *** (Painting cells) Elapsed time 0 min, 0 sec, 125 msec
> kspread (Painting): setRegionPaintDirty A1:G21
> kspread: *** (Painting cells) Elapsed time 0 min, 0 sec, 129 msec
>
> Ie., the part which is time-measured is completed fast enough, but the
> whole operation of selecting cells takes about 1 second. Not sure what
> exactly gets measured in the reported times, but the issue lies
> somewhere else.
>
> / Tomas
> _______________________________________________
> koffice-devel mailing list
> koffice-devel@kde.org
> https://mail.kde.org/mailman/listinfo/koffice-devel
>
_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic