Page 1 of 1

]PROFILE : wrong result

Posted: Tue Nov 08, 2011 4:58 pm
by giangiquario
Please see this DFN:
      #
TESTFN←{
CALLED1←{
CALLED2←{
aaa←⍟1000 1000⍴1.1

}
CALLED2 ⍵
}
CALLED1 ⍵
}

and in session manager type :

]PROFILE SUMMARY -expr='TESTFN 0'

I obtained :

0
Total time: 108.4 msec

Element msec % Calls
#.TESTFN 325.3 300.0 3
---------

Re: ]PROFILE : wrong result

Posted: Tue Nov 15, 2011 10:45 am
by Jay|Dyalog
Yes, this does look wrong.

The reason for it is that ⎕PROFILE knows that three functions have been executed (TESTFN, CALLED1 and CALLED2); but it always identifies dfns by the name of their top-level dfn "capsule", so it refers to all three functions as TESTFN!

Jay.