template profiling