How to Hide & Show a region’s TIMING during development

You may be familiar with the handy Substitution String #TIMING# in Oracle Application Express (read more about TIMING and other Substitution Strings).
When you add it to the footer (or header) of a region you get to see how long it took to run.

It’s pretty nice, but you may not want to display that value all the time. It’s sure nice during development. So why not make it optional? Or toggle it on or off?

Use the following CSS:

Add this line on a region footer:

Then the “Show Layout Columns” button on the APEX Developer Toolbar can be used to toggle the visibility of your timing entry.

Maybe this gives you other creative ideas, share them in the comments.

Keep in mind, as Peter mentions on Twitter (https://twitter.com/PeterRaganitsch/status/961727699667517440)
The #TIMING# value only makes sense for report regions and it couldn’t meassure AJAX processess.

Looking at the TIMING Substitution String is not a replacement for the Debug information generated by APEX.

Hi, I'm Jorge Rimblas. Father, husband, photographer, Oraclenerd, Oracle APEX expert, Oracle ACE, coffee lover, car guy, gadget addict, etc... I'm a Senior APEX Consultant with Insum Solutions, a consulting firm specialized in Oracle databases and the APEX development tool. I have worked with Oracle since 1995 and done eBusiness Suite implementations and customizations. Nowadays I specialize almost exclusively in Oracle APEX.

Tagged with:
4 comments on “How to Hide & Show a region’s TIMING during development
  1. alan says:

    Just used this to enable easier development performance tuning for a page – thanks Jorge

  2. casajarm says:

    Cool.

    How about put it in a shortcut? You can use the # substitutions in a string you return from a function that checks if you are in Debug mode or if you are on a development server or whatever. You could even use a build option to turn it on/off.

I love comments, write me a line