Artifact d1e97c542b24c2c20c6a0eae0e20011c0267f507296c10e014e0b1ade829a524:
- File
psl-1983/3-1/help/time-fnc.doc
— part of check-in
[eb17ceb7f6]
at
2020-04-21 19:40:01
on branch master
— Add Reduce 3.0 to the historical section of the archive, and some more
files relating to version sof PSL from the early 1980s. Thanks are due to
Paul McJones and Nelson Beebe for these, as well as to all the original
authors.git-svn-id: https://svn.code.sf.net/p/reduce-algebra/code/historical@5328 2bfe0521-f11c-4a00-b80e-6202646ff360 (user: arthurcnorman@users.sourceforge.net, size: 1321) [annotate] [blame] [check-ins using] [more...]
- File
psl-1983/help/time-fnc.hlp
— part of check-in
[eb17ceb7f6]
at
2020-04-21 19:40:01
on branch master
— Add Reduce 3.0 to the historical section of the archive, and some more
files relating to version sof PSL from the early 1980s. Thanks are due to
Paul McJones and Nelson Beebe for these, as well as to all the original
authors.git-svn-id: https://svn.code.sf.net/p/reduce-algebra/code/historical@5328 2bfe0521-f11c-4a00-b80e-6202646ff360 (user: arthurcnorman@users.sourceforge.net, size: 1321) [annotate] [blame] [check-ins using]
Time-fnc.sl : code to time function calls. Usage: do (timef function-name-1 function-name-2 ...) Timef is a fexpr. It will redefine the functions named so that timing information is kept on these functions. This information is kept on the property list of the function name. The properties used are `time' and `number-of-calls'. (get function-name 'time) gives you the total time in the function. (not counting gc time). Note, this is the time from entrance to exit. The timef function redefines the function with an unwind-protect, so calls that are interrupted by *throws are counted. (get function-name 'number-of-calls) gives you the number of times the function is called. To stop timing do : (untimef function-name1 ..) or do (untimef) for all functions. (untimef) is a fexpr. To print timing information do (print-time-info function-name-1 function-name-2 ..) or do (print-time-info) for timing information on all function names. special variables used: *timed-functions* : list of all functions currently being timed. *all-timed-functions* : list of all functions ever timed in the current session. Comment: if tr is called on a called on a function that is already being timed, and then untimef is called on the function, the function will no longer be traced.