home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / programming / python / pyhtml / pyhtmldoc / p / profiler_c < prev    next >
Encoding:
Text File  |  1996-11-14  |  1.7 KB  |  36 lines

  1. <TITLE>Profiler Changes -- Python library reference</TITLE>
  2. Next: <A HREF="../i/instant_users_manual" TYPE="Next">Instant Users Manual</A>  
  3. Prev: <A HREF="../p/profiler_introduction" TYPE="Prev">Profiler Introduction</A>  
  4. Up: <A HREF="../t/the_python_profiler" TYPE="Up">The Python Profiler</A>  
  5. Top: <A HREF="../t/top" TYPE="Top">Top</A>  
  6. <H1>9.2. How Is This Profiler Different From The Old Profiler?</H1>
  7. The big changes from old profiling module are that you get more
  8. information, and you pay less CPU time.  It's not a trade-off, it's a
  9. trade-up.
  10. <P>
  11. To be specific:
  12. <P>
  13. <DL>
  14. <DT><B>Bugs removed:</B><DD>Local stack frame is no longer molested, execution time is now charged
  15. to correct functions.
  16. <P>
  17. <DT><B>Accuracy increased:</B><DD>Profiler execution time is no longer charged to user's code,
  18. calibration for platform is supported, file reads are not done <I>by</I>
  19. profiler <I>during</I> profiling (and charged to user's code!).
  20. <P>
  21. <DT><B>Speed increased:</B><DD>Overhead CPU cost was reduced by more than a factor of two (perhaps a
  22. factor of five), lightweight profiler module is all that must be
  23. loaded, and the report generating module (<CODE>pstats</CODE>) is not needed
  24. during profiling.
  25. <P>
  26. <DT><B>Recursive functions support:</B><DD>Cumulative times in recursive functions are correctly calculated;
  27. recursive entries are counted.
  28. <P>
  29. <DT><B>Large growth in report generating UI:</B><DD>Distinct profiles runs can be added together forming a comprehensive
  30. report; functions that import statistics take arbitrary lists of
  31. files; sorting criteria is now based on keywords (instead of 4 integer
  32. options); reports shows what functions were profiled as well as what
  33. profile file was referenced; output format has been improved.
  34. <P>
  35. </DL>
  36.