System-defined Visual Studio Analyzer Events

   

Your component can generate any of the Visual Studio Analyzer system-defined events as long as you register them for your component and then add the code to generate them at the appropriate points.

System-defined events are grouped by type. Event types provide more information about the kind of interaction the event represents. An event can be any of the following types:

Type Description
Generic Events that describe components starting or stopping.
Inbound Events that describe the returning of a value or result set from a function or database query.
Measured Events that describe a measurement of an item such as CPU usage, which is taken at intervals.

Measured events are not listed in the table below because the list of available measured events is generated at runtime from the dynamic event source. In the case of NT Performance Monitor, any valid Performance Monitor counter can be a measured event.

Outbound Events that describe the calling of a function or starting of a database query.

The following table lists the system-defined events.

Event Name Type Category Description
DEBUG_EVENT_CALL Outbound CALLRETURN Generated on function call
DEBUG_EVENT_CALL_DATA Outbound CALLRETURN Generated if additional data is sent to support a function call
DEBUG_EVENT_COMPONENT_
START
Generic STARTSTOP Generated when a component loads an event source
DEBUG_EVENT_COMPONENT_
STOP
Generic STARTSTOP Generated when a component unloads an event source
DEBUG_EVENT_ENTER Outbound CALLRETURN Generated on function enter (after any time spent on the network)
DEBUG_EVENT_ENTER_DATA Outbound CALLRETURN Generated if additional data is sent to support a function enter (after any time spent on the network)
DEBUG_EVENT_LEAVE_DATA Inbound CALLRETURN Generated if additional data is sent before control flow returns (before any time spent on the network)
DEBUG_EVENT_LEAVE_
EXCEPTION
Inbound CALLRETURN Generated if an exception is thrown (before any time spent on the network)
DEBUG_EVENT_LEAVE_
NORMAL
Inbound CALLRETURN Generated on a normal return of control (before any time spent on the network)
DEBUG_EVENT_QUERY_ENTER Outbound QUERYRESULT Generated on the server side when a query is received from a client (after any time spent on the network)
DEBUG_EVENT_QUERY_LEAVE Inbound QUERYRESULT Generated on the server side when a query is returned to a client (before any time spent on the network)
DEBUG_EVENT_QUERY_
RESULT
Inbound QUERYRESULT Generated on the client side when the result of a query is returned from the server
DEBUG_EVENT_QUERY_SEND Outbound QUERYRESULT Generated on the client side when a query is sent to the server
DEBUG_EVENT_RETURN_DATA Inbound CALLRETURN Generated if additional data is sent before control flow returns
DEBUG_EVENT_RETURN_
EXCEPTION
Inbound CALLRETURN Generated if an exception occurs
DEBUG_EVENT_RETURN_
NORMAL
Inbound CALLRETURN Generated on a normal return of control
DEBUG_EVENT_TRANSACTION_COMMIT Generic TRANSACTION Generated when a transaction is committed
DEBUG_EVENT_TRANSACTION_ROLLBACK Generic TRANSACTION Generated when a transaction is cancelled
DEBUG_EVENT_TRANSACTION_START Generic TRANSACTION Generated when a transaction begins