LOTUSSCRIPT/COM/OLE CLASSES


GetPerformanceDocument method
Example

Returns the latest profiling results for an agent.

Note This method is new with Release 7.

Note This method is not implemented in COM.

Defined in

NotesAgent

Syntax

notesDocument = notesAgent.GetPerformanceDocument

Return value

notesDocument


Usage

Use of the returned NotesDocument object as the second parameter of EditDocument in NotesUIWorkspace opens the profiling results as a UI document.

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


This method fails to find the $BEProfile form when it runs in the Notes client if no profile results were previously viewed for any agent in the database. This is because the Notes cache does not contain the newly-created form and cannot be refreshed. The user must close and reopen the database, and if this fails, close and reopen Notes. Alternatively, you can first view profiling results for an agent in the database from the Designer UI.

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

To view the profiling results from the UI, select the agent and choose Agent - View Profile Results.

Example
See Also