Omnis 10.2 Method Performance
Martin Obongita
martin.obongita at yahoo.com
Wed Dec 28 19:14:56 UTC 2022
Hi Doug,
when you say I get my application to the point where I want to test,
do you mean during debugging my code and creating a breakpoint where I think "from here on is slow"?
Or, do you mean testing my form?
The challenge with this step is, when I open a form, the ‘benchmark runner’ window is closed.
Regards,
On Wednesday, December 28, 2022 at 06:54:05 PM GMT+3, Doug Easterbrook <doug at artsman.com> wrote:
hi Martin.
The general gist of the tool is that you tell it when to start and when to stop. This sets built in flags in omnis that track time in each method. Yo can then see those totals of time in a method to determine where you want to analyze deeper.
the general steps
open your libraryopen the performance analyzer library- this gives you an additional menu called ‘performance analyzer’ - where you can pick ‘open benchmark runner’
when you see the ‘benchmark runner’ window, there is a ’start button’. leave that window open.
get your application to the point where you want to test something. in other words, if you don’t want to test a login, then get past that step. get your applicaiton set up to the point where you think ‘from here on in is slow’
click the ’START’ on the performance runner window
do the thing in your application that is slow
click STOP in the performance runner window.
now you have a grid of where your app is taking its time.
you can save a test.change your app to focus on where times is being takenrun another testthen compare the two tests to see if you made any improvements.
as I said, the overall goal of the performance analyzer is to find processes where you take a lot of time, so you can reoptimize things.
example of actual things we have found in the past in our own code
nested loops with a lot of repeated read of data. that introduces latency on the database
replaced with something that cached data that was unchangeable, or rewriting the entire process to have postgres do the work we were doing inside omnis.
let me know if you need more info. We presented this at a Euromnis conference about 10 years or more ago. We wanted to give to omnis as a freebie library for all.
Doug EasterbrookArts Management Systems Ltd.mailto:doug at artsman.comhttp://www.artsman.comPhone (403) 650-1978
On Dec 28, 2022, at 3:49 AM, Martin Obongita via omnisdev-en <omnisdev-en at lists.omnis-dev.com> wrote:
Thank you Kelly.
I have downloaded the files PerformanceAnalizer and jsoncpp130.
Where could I get the documentation or manual on how to set them up?
Regards
On Wednesday, December 28, 2022 at 02:18:35 PM GMT+3, Kelly Burgess <kellyb at montana.com> wrote:
Hi Martin,
I can't seem to find the library link with a Google search.
Here's an old list posting that should help.
https://lists.omnis-dev.com/pipermail/omnisdev-en/2020-February/042447.html
Kelly
_____________________________________________________________
Manage your list subscriptions at https://lists.omnis-dev.com
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
_____________________________________________________________
Manage your list subscriptions at https://lists.omnis-dev.com
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
More information about the omnisdev-en
mailing list