]PROFILE : wrong result
2 posts
• Page 1 of 1
]PROFILE : wrong result
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
---------
-
giangiquario - Posts: 46
- Joined: Thu Nov 26, 2009 8:55 am
- Location: Milano, Italia
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.
- Jay|Dyalog
2 posts
• Page 1 of 1
Return to Source Code Management
Who is online
Users browsing this forum: No registered users and 1 guest
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group