next up previous contents index practicapracticaPP2moodleLHPmoodlepserratacpanmodulospauseperlgoogleetsiiullpcgull
Sig: Hilos en Perl: ithreads Sup: Mejora del Rendimiento Ant: DProf Err: Si hallas una errata ...

Devel::SmallProf

$perl -d:SmallProf /usr/local/bin/latex2html lhp
$ ls -ltr | tail -2
-rw-r--r--  1 lhp lhp 1542213 2005-04-27 11:54 smallprof.out
drwxr-xr-x  2 lhp lhp    4096 2005-04-27 11:54 lhp
O bien:
SMALLPROF_CONFIG=zg perl -d:SmallProf /usr/local/bin/latex2html lhp
$ cat -n smallprof.out | head -4
1  * file name : line number : line count : time (ms) : ctime (ms) : line source
2  /usr/local/bin/latex2html:1797:1:180:169:       waitpid($pid,0);
3  /usr/local/lib/latex2html/L2hos/Unix.pm:268:1:76:79:     $status = waitpid($child_pid, 0);
4  /usr/local/bin/latex2html:15591:1:32:30:             require $_ || die "\n*** Could not load $_ ***\n"

Ejercicio 9.5.1   Escriba el comando que muestra las líneas de smallprof.out ordenadas por el campo count.


next up previous contents index practicapracticaPP2moodleLHPmoodlepserratacpanmodulospauseperlgoogleetsiiullpcgull
Sig: Hilos en Perl: ithreads Sup: Mejora del Rendimiento Ant: DProf Err: Si hallas una errata ...
Casiano Rodríguez León
2006-02-21