APPLICATION DESIGN


Profiling agents and Web services
Calls to IBMR LotusR Domino(TM) Objects in agents or Web services written in LotusScript or Java can be monitored and their elapsed times reported.

To enable profiling in an agent or Web service, select the Security tab of the properties box and check "Profile this agent" or "Profile this web service." Profiling occurs each time an enabled agent or Web service runs. Agent profiling occurs on both the IBMR LotusR NotesR client and Domino server.

To view the profiling results for the latest run, select the agent and choose Agent - View Profile Results, or select the Web service and choose Design - View Profile Results.

The results are presented in a document based on the hidden form $BEProfile. The result document contains a heading listing the name of the agent or Web service and the creation time. The Body item of the result document contains a table with a row for each Domino Objects method called and 5 columns:


The LotusScript NotesAgent class contains a new method GetPerformanceDocument which returns the profiling results for the agent as a NotesDocument object.