ds_profile (public)

 ds_profile command [ tag ]

Defined in packages/acs-developer-support/tcl/acs-developer-support-procs.tcl

Helper proc for performance profiling of templates. This will record the total time spent within an invocation of a template (computed as time between the 'ds_profile start' and 'ds_profile stop' invocations inserted by the template engine).

Parameters:
command (required)
Must be "start" or "stop".
tag (optional)
In practice, the path to the template being profiled.
  • start marks the beginning of a block.
  • stop marks the end of a block. Start and stops must match.

Testcases:
ds_add_test
[ show source ]
Show another procedure: