home *** CD-ROM | disk | FTP | other *** search
/ Really Useful CD 1 / ReallyUsefulCD1.iso / extras / progutils / profiler / _help next >
Encoding:
Internet Message Format  |  1990-06-10  |  1.1 KB

  1. From: ferdo@neabbs.UUCP (FERDINAND OEINCK)
  2. Subject: execution time profiling
  3. Date: 10 Jun 90 02:50:41 GMT
  4. Organization: NEABBS multi-line BBS +31-20-717666 (13x), Amsterdam, Holland
  5.  
  6.  
  7.  
  8. For all Archimedes C programmers outthere.
  9.  
  10. The Norcroft RISCOS ARM C compiler does support
  11. profiling if you specify the -p[x] option on the
  12. commandline. You get a nice list of count values
  13. for every function or block. For optimising purposes
  14. you can pay attention to the function which is called
  15. most.
  16.  
  17. But far more interesting is if you know how much time
  18. is spent in one particular function. A future release
  19. of the C compiler could have this feature as mentioned
  20. in the manual. But I had no time to wait and wrote my
  21. own execution time profiler which I include at the end
  22. of this message (uuencoded, sparked).
  23.  
  24. It is simple to use and works also in the WIMP
  25. environment. When your program uses floating point
  26. arithmetic the total time spent in the fpemulator
  27. will also be shown (my raytracer spends 92% of its
  28. time in the fpemulator code, I need an ARM 4 !!!!).
  29.  
  30. Ferdinand Oeinck
  31. Javalaan 25
  32. 9715 GP  Groningen
  33. The Netherlands
  34. tel ++31(0)50732202
  35. email: hp4nl!neabbs!ferdo
  36.  
  37.