Santhosh, When you say hanged up, is it that the function never returns (and is visible in the server status tabs on port 8001) or it returns but no output is displayed, or that it times out?
I can see a few possibilities - one is that there is a bug in the profiler possibly related to deep recursion, another is that the profiler causes your function to run slower so it is taking too long, and a third is some error on your part. Can you isolate this to a reproducible test case that inserts some documents and then the profile hangs up? You can post that here or submit as a bug to MarkLogic. Yours, Damon From: [email protected] [mailto:[email protected]] On Behalf Of [email protected] Sent: Friday, September 20, 2013 5:17 AM To: [email protected] Subject: [MarkLogic Dev General] Issue with Profilling - reg., Hi All, I was trying to do profiling for one of my function in my xquery module. Both profile button in CQ/Query Console , prof:report() function is not generating the profile report for that function. It is hanged up, I tried multiple times, and it didn't work out. But profiling is working and generating report for other functions / adhoc query. Note: The function which I am trying to profile has multiple internal calls to other module functions and there are multiple recursive function calls. Please suggest what could be the reason? When I tried xdmp:query-meter(), xdmp:elapsed-time(), they are working and giving "PT20.319355S" timings. Thanks & Regards, Santhosh Rajasekaran, This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful.
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
