[ lenny @ 21.08.2002. 21:19 ] @
Kako se ispituje brzina Perl skripti. Interesuje me zauzetost procesora i vreme izvrsavanja. Skripta radi sa obicnim tekstualnim konfiguracionim fajlom, pod Red Hat 7.3, Perl 5.6.1 (valjda). |
[ lenny @ 21.08.2002. 21:19 ] @
[ mire @ 29.09.2002. 20:42 ] @
Devel::DProf
[ B o j a n @ 29.09.2002. 20:55 ] @
Najprimitivniji timer je time(1).
Upotreba: Code: $ time [i]command[/i] Ovim mozes videti samo vreme, ne i zauzetost procesora/resursa. [ mire @ 30.09.2002. 13:18 ] @
iz perlfunc-a:
times Returns a four-element list giving the user and system times, in seconds, for this process and the children of this process. ($user,$system,$cuser,$csystem) = times; Copyright (C) 2001-2025 by www.elitesecurity.org. All rights reserved.
|