Performance secondary states are created using
IltPerformance.NewSecState
, as follows.
IltPerformance.SecState state =
IltPerformance.NewSecState("Performance.SecState.ResponseTime",
"Measures the elapsed time between a request and response operations.");
NewSecState takes two arguments. The first
one is a name that identifies the new performance state in the
application. The name must comply with the rule
Performance.SecState.<value>
. For example, when a new state is created with name
Performance.SecState.ResponseTime
, it is referred to in XML files in the following way:
<performance state="ResponseTime">33.2</performance>
The second argument is a description. This description is used as
a tooltip to display more information about the performance state
represented in a business object. To activate the tooltip support
for secondary states, see
Customizing tooltips.