Abdelrazak Younes wrote:
Michael Wojcik wrote:

One way to track the problem down would be to build LyX with symbols and profile it using kernrate, the free Microsoft sampling profiler, to find out where the hotspots are. Unfortunately I'm not set up to build LyX, and I don't have time right now to pull the sources and do that. (I'm not sure I have the disk space required, for that matter.)

Hello Michael,

I've downloaded this kernrate program but it looks awfully complicated and I don't have much time right now to learn it. If you know how to use that I could send you a LyX 1.5 package with full debug symbols if you would like to help.

I managed to have this report on a lyx-1.5 with full debug, someone understand something about it?

Abdel.

PID = 3344: Source=, Time,
Tried Using Kernrate Default Rate of 25000 events/hit, Actual Rate= 19531 events
/hit
 /==============================\
<         KERNRATE LOG           >
 \==============================/
Date: 2006/10/17   Time: 11:12:59
Machine Name: YNS-ML
Number of Processors: 1
PROCESSOR_ARCHITECTURE: x86
PROCESSOR_LEVEL: 15
PROCESSOR_REVISION: 0204
Physical Memory: 1024 MB
Pagefile Total: 2462 MB
Virtual Total: 2047 MB
PageFile1: \??\D:\pagefile.sys, 1536MB
OS Version: 5.1 Build 2600 Service-Pack: 2.0
WinDir: C:\WINDOWS

Kernrate User-Specified Command Line:
Kernrate_i386_XP.exe -w 10 -s 60 -p 3344


Waiting for 10 seconds before starting to collect profile data
Starting to collect profile data

Will collect profile data for 60 seconds
===> Finished Collecting Data, Starting to Process Results

------------Overall Summary:--------------

P0 K 0:00:47.708 (79.5%) U 0:00:08.672 (14.5%) I 0:00:03.625 ( 6.0%) DPC
0:00:00.030 ( 0.1%)  Interrupt 0:00:00.360 ( 0.6%)
       Interrupts= 40290, Interrupt Rate= 671/sec.


Total Profile Time = 60006 msec

BytesStart BytesStop BytesDiff.
Available Physical Memory   ,       431489024,       431022080,         -466
944
Available Pagefile(s)       ,      2056548352,      2055983104,         -565
248
Available Virtual           ,      2131832832,      2131832832,
  0
Available Extended Virtual  ,               0,               0,
  0

                                  Total      Avg. Rate
    Context Switches     ,        37200,         620/sec.
    System Calls         ,      1312760,         21877/sec.
    Page Faults          ,         8733,         146/sec.
    I/O Read Operations  ,          963,         16/sec.
    I/O Write Operations ,          220,         4/sec.
    I/O Other Operations ,         2978,         50/sec.
    I/O Read Bytes       ,        28012,         29/ I/O
    I/O Write Bytes      ,        47852,         218/ I/O
    I/O Other Bytes      ,       337658,         113/ I/O

----------------------------------------------------------------

Results for User Mode Process LYX-QT4.EXE (PID = 3344)

    User Time                   = 15.07% of the Elapsed Time
    Kernel Time                 = 11.18% of the Elapsed Time

                                  Total      Avg. Rate
    Page Faults          ,         5692,         95/sec.
    I/O Read Operations  ,            0,         0/sec.
    I/O Write Operations ,            0,         0/sec.
    I/O Other Operations ,            6,         0/sec.
    I/O Read Bytes       ,            0,         0/ I/O
    I/O Write Bytes      ,            0,         0/ I/O
    I/O Other Bytes      ,           40,         7/ I/O

                       Start-Count       Stop-Count         Diff.
Threads            ,               5,               5,      0
Handles            ,             133,             133,      0
Working Set Bytes  ,        17555456,        17698816, 143360
Virtual Size Bytes ,       114094080,       114089984,  -4096
Paged Pool Bytes   ,           52596,           52596,     0
Non Paged Pool Bytes,           4520,            4520,     0
Pagefile Bytes     ,        10416128,        10506240, 90112
Private Pages Bytes,        10416128,        10506240, 90112
------------------------------------------------------------------

OutputResults: ProcessModuleCount (Including Managed-Code JITs) = 47
Percentage in the following table is based on the Total Hits for this Process

Time   4308 hits, 19531 events per hit --------
 Module                                Hits   msec  %Total  Events/Sec
QtGui4                                  954      60006    22 %      310511
lyx-qt4                                 917      60006    21 %      298468
ntdll                                   788      60006    18 %      256481
QtCore4                                 713      60006    16 %      232070
MSVCR80                                 458      60006    10 %      149071
GDI32                                   258      60006     5 %       83974
MSVCP80                                 174      60006     4 %       56634
kernel32                                 25      60006     0 %        8137
usp10                                    16      60006     0 %        5207
libiconv2                                 3      60006     0 %         976
MSCTF                                     1      60006     0 %         325
USER32                                    1      60006     0 %         325

================================= END OF RUN ================================== ============================== NORMAL END OF RUN ==============================


Reply via email to