Hi Mohammad

> Is there any code, macro, widget to calculate the elapsed time for any action 
> in Tiddlywiki?
> 
> Is there a simple timer macro to see the elapsed time when another macro 
> performs a task?

The core has built-in instrumentation for the refresh cycle. Find “Performance 
Instrumentation” on the “Settings” tab of control panel. You’ll need to reload 
the wiki before it takes effect.

With performance instrumentation switched on, you’ll see additional timing 
information in the browser developer console each time a refresh cycle is 
triggered. For example:

performance: mainRender: 327.83ms 
performance: +filter: 49.70ms 
performance: styleRefresh: 9.14ms 
performance: +filter: 2.46ms 
performance: mainRefresh: 68.10ms 
performance: +filter: 37.69ms 

The information above should be interpreted as follows:

“Initial rendering of the main page took 327ms (of which 50ms was filter 
evaluation). Refreshing the page stylesheet took 9ms (of which 2ms was filter 
evaluation). Refreshing the main page took 68ms (of which 38ms was filter 
evaluation)"

* mainRender is the time taken for the initial display of the page template
* styleRefresh is the time taken to refresh the page stylesheet
* mainRender is the time taken to refresh the main page template
* in each case, +filter denotes the time taken up with filter evaluation.

As an example, try switching between the sidebar tabs to compare how long they 
take to render.

Best wishes

Jeremy



> 
> --Mohammad
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to tiddlywiki+unsubscr...@googlegroups.com 
> <mailto:tiddlywiki+unsubscr...@googlegroups.com>.
> To post to this group, send email to tiddlywiki@googlegroups.com 
> <mailto:tiddlywiki@googlegroups.com>.
> Visit this group at https://groups.google.com/group/tiddlywiki 
> <https://groups.google.com/group/tiddlywiki>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/2456b5b8-8cfd-43d5-b6c4-28d76f649117%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/2456b5b8-8cfd-43d5-b6c4-28d76f649117%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/B63A2B4B-D621-47FC-95D9-6C48CE55B5E7%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to