Options

Calculate time to open a page in NAV

I have added few flowfield field into a page. I want to determine time taken by page to open before adding those fields and after adding those fields. How to calculate time taken by page to open? How to measure performance of the page?

Answers

  • Options
    Slawek_GuzekSlawek_Guzek Member Posts: 1,690
    edited 2018-09-04
    I'd try to profile performance using some test code/procedure, and collecting timestamps before/after calling CALCFIELDS on the field. It would give me a clear starting and ending point, and a precise time used to calculate the flowfield. Of course the code would have to be a bit more advanced, lopping through a few records and averaging CALCFIELDS calculation time over a few different source records/ few trials.

    Doing similar thing on the page might be tricky; you could try to remember the CURRENTDATETIME in some global var in OnInit or OnOpenPage trigger, and then calculate elapsed time in OnAfterGetCurrentRec, displaying the result in MESSAGE call, or storing it in some log file.
    Slawek Guzek
    Dynamics NAV, MS SQL Server, Wherescape RED;
    PRINCE2 Practitioner - License GR657010572SG
    GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
Sign In or Register to comment.