Post date: 2007-10-21 10:42This has been around for some time but I have never used it or heard of others using it.
It is really easy and gives some helpful hints of where and what takes time in your code.
In your agent, simply check the Profile check box (security tab):

The run the agent and turn to the agent in the designer, right click and choose:

The resulting report will look like this:
resizeImage Profile
2007-10-21 10:31:13 CEDT
Elapsed time: 361 msec
Methods profiled: 10
Total measured time: 0 msec
| |
Method
|
Operation
|
Calls
|
Time
|
|
Document
|
GetItemValue
|
|
4
|
0
|
|
Document
|
HasItem
|
|
2
|
0
|
|
Document
|
Save
|
|
1
|
0
|
|
Document
|
ReplaceItemValue
|
|
1
|
0
|
|
Document
|
GetAttachment
|
|
1
|
0
|
|
Session
|
UserName
|
Get
|
1
|
0
|
|
EmbeddedObject
|
ExtractFile
|
|
1
|
0
|
|
AgentContext
|
CurrentDatabase
|
Get
|
1
|
0
|
|
AgentContext
|
DocumentContext
|
Get
|
1
|
0
|
|
Session
|
AgentContext
|
Get
|
1
|
0
|
profile1.PNG
profile2.PNG
|