System::DProf and system()

C

crez

hello,

I am curently processing profiling data from a script that contains
calls to external program via system(). I would need to know wether the
timing info reported by DProf also includes the running time of these
external programs or not.

thanks

Clément.
 
X

xhoster

crez said:
hello,

I am curently processing profiling data from a script that contains
calls to external program via system(). I would need to know wether the
timing info reported by DProf also includes the running time of these
external programs or not.

That depends on whether you give the -r option to dprofpp.

Anyway, you can try it out with a few simple scripts.

perl -d:DProf -e 'sub foo{perl spin.pl}}; \
sub bar {foreach my $x (1..1e8) {}}; foo(); bar()'

(Where spin.pl is just a file with "foreach my $x (1..1e8) {}")


Xho
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top