dana
6bb792dba8
53257: use monotonic clock where appropriate
...
update the following features to use the monotonic clock for calculating time
deltas and intervals:
* MAILCHECK parameter
* PERIOD parameter
* SECONDS parameter
* %(nS.t.f) prompt-expansion sequence
* time built-in's elapsed time and cpu % values
* zsh/zftp ZFTP_TMOUT parameter
* zsh/zprof timings
also use CLOCK_MONOTONIC_RAW instead of CLOCK_MONOTONIC on macOS
2024-12-26 10:09:25 -06:00
Oliver Kiddle
57248b8883
52750: remove ansi2knr support for old pre-ansi K&R compilers
2024-03-18 20:02:34 +01:00
Daniel Shahaf
fb1aa3fe1e
45923 (with memory leak fixed, cf. 45924): zprof: Don't tally all anonymous functions as though they were a single function named "(anon)".
...
Before:
% zmodload zsh/zprof
% () :
% () :
% zprof
num calls time self name
-----------------------------------------------------------------------------------
1) 2 0.08 0.04 100.00% 0.08 0.04 100.00% (anon)
After:
% zmodload zsh/zprof
% () :
% () :
% zprof
num calls time self name
-----------------------------------------------------------------------------------
1) 1 0.04 0.04 50.45% 0.04 0.04 50.45% (anon) [:3]
2) 1 0.04 0.04 49.55% 0.04 0.04 49.55% (anon) [:2]
2020-05-28 19:40:40 +00:00
Peter Stephenson
1b52f47cf2
23665: autoloading of module features and related tweaks
2007-07-06 21:52:38 +00:00
Peter Stephenson
b0c5f09169
see 23479: add initial features support for modules
2007-05-28 22:57:39 +00:00
Wayne Davison
fb0937a69e
Marked unused parameters with the new UNUSED() macro.
2004-06-02 22:14:25 +00:00
Peter Stephenson
9634760d5e
17582: Improved option argument handling.
...
unposted: Updated version to 4.1.0-dev-6 because of interface change.
2002-08-27 21:10:30 +00:00
Bart Schaefer
ecbc4e4457
Silence compiler warnings.
2001-05-28 17:39:00 +00:00
Sven Wischnowsky
5fe1924155
make the zprof wrapper function be more careful, avoiding almost all of the code when the module is being unloaded (14504)
2001-05-28 09:23:39 +00:00
Sven Wischnowsky
873671e368
fix misaligned percent output of zprof (13673)
2001-03-20 09:35:47 +00:00
Tanaka Akira
3d5e4155a4
Initial revision
1999-12-13 12:40:42 +00:00