#
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
---------
]PROFILE : wrong result
- giangiquario
- Posts: 46
- Joined: Thu Nov 26, 2009 8:55 am
- Location: Milano, Italia
]PROFILE : wrong result
Please see this DFN:
Re: ]PROFILE : wrong result
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.
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.