]PROFILE : wrong result

SALT, SPICE, Subversion, etc...

]PROFILE : wrong result

Postby giangiquario on Tue Nov 08, 2011 4:58 pm

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
---------
User avatar
giangiquario
 
Posts: 46
Joined: Thu Nov 26, 2009 8:55 am
Location: Milano, Italia

Re: ]PROFILE : wrong result

Postby Jay|Dyalog on Tue Nov 15, 2011 10:45 am

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.
Jay|Dyalog
 


Return to Source Code Management

Who is online

Users browsing this forum: No registered users and 1 guest