+2003 Aug 1
+ Radu Greab:
+ DProf.xs:
+ - do not assume that $^P stays unchanged inside the profiled subroutine
+ DProf.pm:
+ - increase VERSION
+
+2003 Jul 6
+
+ Radu Greab:
+ DProf.xs:
+ - improved the mapping between subroutines and identifiers
+ - do not assume that $^P stays unchanged during the lifetime of the script
+ - panic when the profiled subroutine is leaved with goto/last/next
+ DProf.pm:
+ - document the problem with the subroutines exited with goto/last/next
+ t/test{7,8}*
+ - added
+
2003 Jan 8
Blair Zajac:
use XSLoader ();
# Underscore to allow older Perls to access older version from CPAN
-$Devel::DProf::VERSION = '20030108.00_00'; # this version not authorized by
+$Devel::DProf::VERSION = '20030801.00_00'; # this version not authorized by
# Dean Roehrich. See "Changes" file.
XSLoader::load 'Devel::DProf', $Devel::DProf::VERSION;
{
CV *cv;
- if (PERLDB_SUB_NN) {
+ if (SvIOK(sv)) { /* if (PERLDB_SUB_NN) { */
cv = INT2PTR(CV*,SvIVX(sv));
} else {
if (SvPOK(sv)) {
}
}
-static void
+inline static void
set_cv_key(pTHX_ CV *cv, char *pname, char *gname)
{
- SvGROW(g_key_hash, sizeof(CV*) + strlen(pname) + strlen(gname) + 3);
- sv_setpvn(g_key_hash, (char*)&cv, sizeof(CV*));
+ SvGROW(g_key_hash, sizeof(CV**) + strlen(pname) + strlen(gname) + 3);
+ sv_setpvn(g_key_hash, (char*)&cv, sizeof(CV**));
sv_catpv(g_key_hash, pname);
sv_catpv(g_key_hash, "::");
sv_catpv(g_key_hash, gname);