orbeon / orbeon-forms

Orbeon Forms is an open source web forms solution. It includes an XForms engine, the Form Builder web-based form editor, and the Form Runner runtime.
http://www.orbeon.com/
GNU Lesser General Public License v2.1
514 stars 220 forks source link

Inspector improvement: page load profiler for services and more #5799

Open ebruchez opened 1 year ago

ebruchez commented 1 year ago

See also #2169 and #3534.

A recurring issue is gaining data about a slow-loading page. In a few concrete cases we've had, slow user-defined services are to blame. But it's hard to know about this without inspecting log files.

We should have a way to load a page in a "profiling" mode. This can be done:

Here is the information we'd like to have:

The result could be shown in two ways:

ebruchez commented 1 year ago

As a first step, even just gathering the info and logging it in a compact form could help.

ebruchez commented 1 year ago

I made some improvements to the XForms Inspector. I notice that it has a "Console" mode, which allows dispatching fr-messages events to the inspector and have them show there. This doesn't appear to be used anywhere in our code base.

We could use this feature, or an improvement of it, to output this kind of information.

ebruchez commented 1 year ago

Moved this comment to separate issue #5846.

ebruchez commented 1 year ago

Moved this comment to separate issue #5846.

ebruchez commented 1 year ago

Moved this comment to separate issue #5845.

ebruchez commented 1 year ago

Also for Form Runner actions, including action syntax!