Hi,
Consider the following script:
1: #!/usr/bin/perl -w
2:
3: sub func1 {
4: func2(sub { func3();'wtf'});
5: }
6:
7: sub func2 { shift->() }
8:
9: sub func3 {}
10: warn func1();
can devel::nytprof tell that func2 and func3 are called by different
callers? it seems the fileinfo/subinfo only stores the caller line
(line 4 in this case), from which the caller sub is derived. in the
html output the caller would be "func2 or __ANON__[sciprt.pl:4].
However for constructing the call tree it wouldn't be sufficient
though. is the information stored somehow during profiling?
Cheers,
CLK
--~--~---------~--~----~------------~-------~--~----~
You've received this message because you are subscribed to
the Devel::NYTProf Development User group.
Group hosted at: http://groups.google.com/group/develnytprof-dev
Project hosted at: http://perl-devel-nytprof.googlecode.com
CPAN distribution: http://search.cpan.org/dist/Devel-NYTProf
To post, email: [email protected]
To unsubscribe, email: [email protected]
-~----------~----~----~----~------~----~------~--~---