XEROX UPCSTATS 2 4 1 UPCSTATS 1 4 By: Larry Masinter (Masinter.pa@Xerox.com) INTERNAL This document last edited on 11 October 84 UPCSTATS is for gathering statistics about where Dorado microcode is spending its time. (It only works on Dorados.) It samples the microcode's PC while running something, and then plots it in a histogram. It really doesn't help much unless you are familiar with the organization of the Dorado Interlisp-D microcode, and want to analyze it. (UPCSTATS form dolistflg) [Function] will EVAL form while gathering statistics, and then print out a histogram. If dolistflg is NIL, the output will go to the current output file (NIL). The first time you run UPCSTATS, it will ask you for the name of a ".MB" file. This is a Dorado Microcode Binary, and you need to get the version of "DoradoLisp.MB" that corresponds to the "DoradoLispMC.EB" that is on your local disk. Normally this is on the "Basics" release subdirectory. Once you've done a UPCSTATS, you can print the output again, merely by calling (PLOTPCS). SAMPLE OUTPUT: Microcode PC Sample: Each * = 11 count, or .03% AEMUNOTREADY |*************** (.5154639) NOSKIP |* (.5500377) EFFADRPCREL+1 |* +2 |* (.6254715) LDA3 |* (.6569022) LDA23 |** +1 |* (.7669097) LDAIX |**** (.9146342) LDAX |**** (1.059215) STACKGETSMD |************ (1.480387) STA2 |* .È È((È(ŠŠ8(ŠŠ8DÈÈ PAGEHEADING RUNNINGHEADMODERN GACHAMODERN MODERN MODERN MODERNLOGOMODERN   HRULE.GETFNMODERN  HRULE.GETFNMODERN  HRULE.GETFNMODERN   HRULE.GETFNMODERN  HRULE.GETFNMODERN , o? ½³Ü(zº