Changeset 8284 for trunk/tools
- Timestamp:
- Apr 19, 2002, 8:22:42 AM (23 years ago)
- 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:57bird Exp $ */1 /* $Id: Readme.1st,v 1.2 2002-04-19 06:22:42 bird Exp $ */ 2 2 3 Forget these fixes. I've just made a little discovery.4 Read the article: http://www.mainframeforum.com/t115794/s.html5 3 6 If you're lazy just read the following: 4 V A C 4 P r o f i l i n g 5 ---------------------------------- 6 7 8 While working on VAC3 fixes I made a little discovery: 9 http://www.mainframeforum.com/t115794/s.html 10 So, now the focus is VAC4.0 Profiling. 11 12 13 Introduction 14 ------------- 15 16 Initially this started out as a fixkit for the VAC308 preformance 17 analyser (icsperf). Fixing the WS4eB / FP13+ issues. The VAC3 fixes 18 still applies, but are not usable with Odin32. Also icsperf doesn't 19 work reliablly enought under WS4eB. (It works on one of two test 20 machines here.) 21 22 We should using VAC40 tech preview features to do preformance 23 tuning of Odin32. Unforunately it's not working 100% (yet) but 24 the major problem, the fs selector, is worked around. A patch for 25 some register corruption 'features' in cpppan40.dll is also 26 included. 27 7 28 8 29 How to trace your VAC308 and VAC365 programs … … 10 31 11 32 1. Compile with -Gh+ so that profile hooks are generated. 12 2. Link with cpppan40.obj from VAC4. (*not* with CPPOPA3.OBJ!!!)33 2. Link with cpppan40.obj from $(ODIN32_LIB). 13 34 3. Run your program in the profiler, patrace.exe: 14 35 patrace.exe <tracefile> <programname> [options] 15 36 Note. Remember to have the cpppan40.sys driver installed 16 37 elsewise patrace will exit with no explanation. 38 Note. Having the IDE running may actually interfere with patrace.exe. 17 39 4. Start the VAC4 IDE in tech preview mode. From the commandline this means: 18 40 vacide.exe -TECHPREVIEW [more args] 19 41 - Open any project. 20 42 - Go the 'Project' tab. There you'll find a 'Performance...' button. 21 43 - Then use the 'Browse...' button to open the trace file you 22 44 generated a little while ago. 23 24 45 5. Now a 'PA'<tracefilename> Tab will show up. From that you have access two 25 46 tree graphs. Sorrily the really really nice graphical presentation isn't … … 38 59 Set PROFILE=1 39 60 4. Build the entire odin sources or the part you like to profile. 61 5. goto step 3 if previous section. 40 62 63 64 65 Known problems 66 --------------- 67 68 - At some point during VPC startup (right after the logo pops up) 69 patrace.exe usually traps due to a bat ebx pointer at location 70 0001:0001b0ab (eip=0002b0ab) in patrace.exe. ebx and ecx is 71 usually pointing badly like crazy. 72 When EXTRA_CPLUS isn't set in the environment this will most likely 73 be a '23232E: Trace file, blah.trc, has been truncated.' 74 75 - '23232E: Trace file, blah.trc, has been truncated.' 76 This is some mysterious message. It's probably a nice way to say 77 the-trace-file-isn't-what-is-should-be-and-may-trap/hand-your-the- 78 vacide-if-you-try-to-open-it. 79 Happens 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 82 screwed up. Like you get negative execution time for a call. A workaround 83 is to disable all but one CPU, or to issue a DosSetThreadAffinity during 84 program startup. 85 86 87 Tip! try redirect stdout and stderr. patrace sometimes writes error 88 messages or debug stuff to those files. 89 90 91 92 Environment 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" 41 111 42 112
Note:
See TracChangeset
for help on using the changeset viewer.