Changeset 8284 for trunk/tools


Ignore:
Timestamp:
Apr 19, 2002, 8:22:42 AM (23 years ago)
Author:
bird
Message:

Updated.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/profilerfix/Readme.1st

    r8277 r8284  
    1 /* $Id: Readme.1st,v 1.1 2002-04-17 04:09:57 bird Exp $ */
     1/* $Id: Readme.1st,v 1.2 2002-04-19 06:22:42 bird Exp $ */
    22
    3 Forget these fixes. I've just made a little discovery.
    4 Read the article: http://www.mainframeforum.com/t115794/s.html
    53
    6 If you're lazy just read the following:
     4V A C 4  P r o f i l i n g
     5----------------------------------
     6
     7
     8While working on VAC3 fixes I made a little discovery:
     9        http://www.mainframeforum.com/t115794/s.html
     10So, now the focus is VAC4.0 Profiling.
     11
     12
     13Introduction
     14-------------
     15
     16Initially this started out as a fixkit for the VAC308 preformance
     17analyser (icsperf). Fixing the WS4eB / FP13+ issues. The VAC3 fixes
     18still applies, but are not usable with Odin32. Also icsperf doesn't
     19work reliablly enought under WS4eB. (It works on one of two test
     20machines here.)
     21
     22We should using VAC40 tech preview features to do preformance
     23tuning of Odin32. Unforunately it's not working 100% (yet) but
     24the major problem, the fs selector, is worked around. A patch for
     25some register corruption 'features' in cpppan40.dll is also
     26included.
     27
    728
    829How to trace your VAC308 and VAC365 programs
     
    1031
    11321. Compile with -Gh+ so that profile hooks are generated.
    12 2. Link with cpppan40.obj from VAC4. (*not* with CPPOPA3.OBJ!!!)
     332. Link with cpppan40.obj from $(ODIN32_LIB).
    13343. Run your program in the profiler, patrace.exe:
    1435        patrace.exe <tracefile> <programname> [options]
    1536   Note. Remember to have the cpppan40.sys driver installed
    1637         elsewise patrace will exit with no explanation.
     38   Note. Having the IDE running may actually interfere with patrace.exe.
    17394. Start the VAC4 IDE in tech preview mode. From the commandline this means:
    18         vacide.exe -TECHPREVIEW [more args]
     40        vacide.exe -TECHPREVIEW [more args]
    1941   - Open any project.
    2042   - Go the 'Project' tab. There you'll find a 'Performance...' button.
    2143   - Then use the 'Browse...' button to open the trace file you
    2244     generated a little while ago.
    23 
    24455. Now a 'PA'<tracefilename> Tab will show up. From that you have access two
    2546   tree graphs. Sorrily the really really nice graphical presentation isn't
     
    3859        Set PROFILE=1
    39604. Build the entire odin sources or the part you like to profile.
     615. goto step 3 if previous section.
    4062
     63
     64
     65Known problems
     66---------------
     67
     68- At some point during VPC startup (right after the logo pops up)
     69patrace.exe usually traps due to a bat ebx pointer at location
     700001:0001b0ab (eip=0002b0ab) in patrace.exe. ebx and ecx is
     71usually pointing badly like crazy.
     72When EXTRA_CPLUS isn't set in the environment this will most likely
     73be a '23232E: Trace file, blah.trc, has been truncated.'
     74
     75- '23232E: Trace file, blah.trc, has been truncated.'
     76This is some mysterious message. It's probably a nice way to say
     77the-trace-file-isn't-what-is-should-be-and-may-trap/hand-your-the-
     78vacide-if-you-try-to-open-it.
     79Happens only with Odin. And often when EXTRA_CPLUS isn't set.
     80
     81- Doesn't work very well on SMP boxes. For example the times may be
     82screwed up. Like you get negative execution time for a call. A workaround
     83is to disable all but one CPU, or to issue a DosSetThreadAffinity during
     84program startup.
     85
     86
     87Tip! try redirect stdout and stderr. patrace sometimes writes error
     88messages or debug stuff to those files.
     89
     90
     91
     92Environment vars which affects patrace.exe
     93--------------------------------------------
     94
     95(My notes.)
     96
     97"EXTRA_CPLUS"
     98    It does something else/more if this is set. Value is not tested.
     99
     100"IDBCSTABLE"
     101
     102"PA LOGTO"
     103
     104"ICLUI MSGFILE"
     105"ICLUI TRACE"
     106"ICLUI_TRACE"
     107"ICLUI TRACETO"
     108"ICLUI_TRACETO"
     109"ICLUI CHECKSTACK"
     110"ICLUI_CHECKSTACK"
    41111
    42112
Note: See TracChangeset for help on using the changeset viewer.