Forum OpenACS Q&A: Response to Open ACS handling heavy traffic

Collapse
Posted by MaineBob OConnor on

What is the best way to time my dynamic tcl pages so I can clean up any time consuming selects and other code?

I could do an
ns_log Notice "Start time..."
at the beginning of the page and again just before
ns_return 200 text/html $page_content

Doing a
set now [database_to_tcl_string $db "select [db_sysdate] from dual"]
May in itself add a bit of time to the test results...so,

Suggestions and code snippets would be helpful.

TIA
-Bob