Here's a dummy example of the file contents:
2013-05-28 16:39:54,185 [http-8080-8 UserName] DEBUG DynamicDialogService.java:395 - DynamicDialogService.getDialogDescriptors()
2013-05-28 16:39:54,935 [http-8080-8 UserName] DEBUG ControlDescriptor.java:213 - Populating value of control Control1
2013-05-28 16:39:54,935 [http-8080-8 UserName] DEBUG ControlDescriptor.java:266 - Completed population of control 'Control1', value: 'test'
2013-05-28 16:39:55,060 [http-8080-8 UserName] DEBUG ControlDescriptor.java:213 - Populating value of control Control2
2013-05-28 16:39:55,060 [http-8080-8 UserName] DEBUG ControlDescriptor.java:266 - Completed population of control 'Control2', value: '2'
2013-05-28 16:39:55,076 [http-8080-8 UserName DEBUG ControlDescriptor.java:213 - Populating value of control Control3
//many lines of logging
2013-05-28 16:39:55,154 [http-8080-8 UserName] DEBUG ControlDescriptor.java:266 - Completed population of control 'Control3 value: 'null'
2013-05-28 16:39:55,576 [http-8080-8 UserName] DEBUG ControlDescriptor.java:213 - Populating value of control Control4
//many lines of logging
2013-05-28 16:39:55,857 [http-8080-8 UserName] DEBUG ControlDescriptor.java:266 - Completed population of control 'Control4', value: 'null'
2013-05-28 16:39:59,482 [http-8080-8 UserName] DEBUG DynamicDialogService.java:417 - Got descriptors. Building result object.
There are a few main components to the file:
"DynamicDialogService.getDialogDescriptors" designates the start of one action. There may be several of these in each file. The subsequent "controls" belong to this action.
"ControlDescriptor.java:213" designates the start of a "control" with a name
"ControlDescriptor.java:266" designates the end of a "control" with a matching name
Subtracting the start timestamp from the end timestamp gives the total time elapsed for that control
"Got descriptors. Building result object." designates the end of an action. again, getting this timestamp for subtraction along with the start of the action gives a total time elapsed for that action.
Any help / code / suggestions on how to tackle this would be great.
VulpesPosted May 29, 2013, 7:34 PM
Try the following - changes highlighted. If it's not quite right, I'll try and fix it tomorrow:
true imagePosted May 29, 2013, 6:40 PM
One issue is it doesn't always find an "end" for the control with this code:
It certainly works for the examples I've provided. Here are a bunch more scenarios.
VulpesPosted May 29, 2013, 5:37 AM
Sunny SharmaPosted May 29, 2013, 5:23 AM
Is there another keywords also like you mentioned - "DynamicDialogService.getDialogDescriptors" and "Got Descriptors"? or they're only the two for which you want them to tracked?