Execution time of called method from custom shared variable classes

Jan Haderka <[email protected]> Fri, 12 Jul 2013 13:18:47 +0200
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Hi,

I need to find out execution time of some class called from the template. It's the class with bunch of static methods and I would ideally need to know cumulative time spent in all those calls (as opposed to rendering itself). The examples of usages would be from

${classX.callA(some param)} 

to

[#if classX.doTest() ]

etc.

The class above is made available via shared variables.

I understand that I need to modify the code was wondering if anyone could suggest what would be the best class to extend to add such monitoring and to collect the time. 
Is there a singe point through which all calls to shared variable methods go?
Is TemplateMethodModel.exec() the right place where to measure such thing or do I need to extend more (or something else then model) depending on where the call happens?

Thanks in advance,
--
Jan

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk

_______________________________________________
FreeMarker-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freemarker-user