The increment of remove and add live data item behavior

We did 2 tests by Rockwell Softerware Data Client and LiveDataControl in Form. The test is to add and remove some live data items, then watch increment of “Calls to AddItems” and “Calls to RemoveItems” by Diagnostics Counter Monitor.

The behavior is as following:

1.     Rockwell Softerware Data Client

For “Calls to AddItems”

This increment is equal to your addItems time, not related with the item count in one time adding operation.

For example, if you add 2 items in one time, the increment of “Calls to AddItems” is 1.

For “Calls to RemoveItems”

The behavior is the same with “Calls to AddItems”

For example, if you remove 3 items in one time, the increment of “Calls to RemoveItems” is 1.

2.     LiveDataControl in Form

For “Calls to AddItems”

This increment is equal to your addItems time, not related with the item count in one time adding operation.

For example, if you add 2 items in one time, the increment of “Calls to AddItems” is 1.

In debug environment, we can suspend it after the first item is added and before next is added, increment of “Calls to AddItems” is 2.

For “Calls to RemoveItems”

This increment is equal to the item count in one time adding operation.//here is strange

For example, if you remove 3 items in one time, the increment of “Calls to AddItems” is 3


Test Steps:

   1. Configuration: add a liveDataControl on a Form, add server, group, Items on it. Check the "Calls to AddItems" and "RemoveItems" by Diagnotics Counter Monitor
   2. Open the form, check the increment
   3. Close the form, check the increment

We can also write pnuts code to test it, the result is the same with 2.

你可能感兴趣的:(server,behavior,Diagnostics)