Macros that record start/stop events for the execution statistic display.
More...
|
#define | EventStartA(slot) |
|
#define | EventStartAv(slot, v1, v2) |
|
#define | EventStopA(slot) |
|
#define | EventStopAv(slot, v1, v2) |
|
#define | EventStartB(slot) |
|
#define | EventStartBv(slot, v1, v2) |
|
#define | EventStopB(slot) |
|
#define | EventStopBv(slot, v1, v2) |
|
#define | EventStartC(slot) |
|
#define | EventStartCv(slot, v1, v2) |
|
#define | EventStopC(slot) |
|
#define | EventStopCv(slot, v1, v2) |
|
#define | EventStartD(slot) |
|
#define | EventStartDv(slot, v1, v2) |
|
#define | EventStopD(slot) |
|
#define | EventStopDv(slot, v1, v2) |
|
Macros that record start/stop events for the execution statistic display.
This section describes the macros that call event recorder functions from the user application to record start/stop events for program execution statistics.
The start/stop events allow to measure execution times with different slots (0 - 15) in four different groups (G = A - D). The call to 'EventStart' starts a timer slot; the call to 'EventStop' stops the related timer. A call to EventStop with slot 15 stops the timers of all slots in the specific group.
The macros allow to record either:
- Filename and line number of the function call by using the variant EventStartG or EventStopG.
- Integer values v1 and v2 by using the variant EventStartGv or EventStopGv.
The start/stop events are using The four event groups (G = A - D) that are available to the user are mapped to the level information in EventID and may be used for filtering. The mapping is as shown in the table below.
It is required to call the EventRecorderInitialize function before using start/stop events. The parameter recording from the table above can be used in the functions EventRecorderInitialize, EventRecorderEnable, and EventRecorderDisable. Event filtering may be used to change the settings in the debugger.
The following code shows the setup of the Event Recorder for start/stop events:
- Record all events:
- Record only start/stop events for group A and group B.
Code example
◆ EventStartA
#define EventStartA |
( |
| slot | ) |
|
Value:The macro EventStartA generates a start event for group A with the specified slot number. The Event Recorder stores filename and line number of the call.
- Parameters
-
[in] | slot | slot number (up to 16 slots, 0..15) |
◆ EventStartAv
#define EventStartAv |
( |
| slot, |
|
|
| v1, |
|
|
| v2 ) |
Value:The macro EventStartAv generates a start event for group A with the specified slot number. The Event Recorder stores the integer value parameters v1, v2.
- Parameters
-
[in] | slot | slot number (up to 16 slots, 0..15) |
[in] | v1 | first data value |
[in] | v2 | second data value |
◆ EventStopA
#define EventStopA |
( |
| slot | ) |
|
Value:The macro EventStopA generates a stop event for group A with the specified slot number. The Event Recorder stores filename and line number of the call.
- Parameters
-
[in] | slot | slot number (up to 16 slots, 0..15) |
◆ EventStopAv
#define EventStopAv |
( |
| slot, |
|
|
| v1, |
|
|
| v2 ) |
Value:The macro EventStopAv generates a stop event for group A with the specified slot number. The Event Recorder stores the integer value parameters v1, v2.
- Parameters
-
[in] | slot | slot number (up to 16 slots, 0..15) |
[in] | v1 | first data value |
[in] | v2 | second data value |
◆ EventStartB
#define EventStartB |
( |
| slot | ) |
|
Value:The macro EventStartB generates a start event for group B with the specified slot number. The Event Recorder stores filename and line number of the call.
- Parameters
-
[in] | slot | slot number (up to 16 slots, 0..15) |
◆ EventStartBv
#define EventStartBv |
( |
| slot, |
|
|
| v1, |
|
|
| v2 ) |
Value:The macro EventStartBv generates a start event for group B with the specified slot number. The Event Recorder stores the integer value parameters v1, v2.
- Parameters
-
[in] | slot | slot number (up to 16 slots, 0..15) |
[in] | v1 | first data value |
[in] | v2 | second data value |
◆ EventStopB
#define EventStopB |
( |
| slot | ) |
|
Value:The macro EventStopB generates a stop event for group B with the specified slot number. The Event Recorder stores filename and line number of the call.
- Parameters
-
[in] | slot | slot number (up to 16 slots, 0..15) |
◆ EventStopBv
#define EventStopBv |
( |
| slot, |
|
|
| v1, |
|
|
| v2 ) |
Value:The macro EventStopBv generates a stop event for group B with the specified slot number. The Event Recorder stores the integer value parameters v1, v2.
- Parameters
-
[in] | slot | slot number (up to 16 slots, 0..15) |
[in] | v1 | first data value |
[in] | v2 | second data value |
◆ EventStartC
#define EventStartC |
( |
| slot | ) |
|
Value:The macro EventStartC generates a start event for group C with the specified slot number. The Event Recorder stores filename and line number of the call.
- Parameters
-
[in] | slot | slot number (up to 16 slots, 0..15) |
◆ EventStartCv
#define EventStartCv |
( |
| slot, |
|
|
| v1, |
|
|
| v2 ) |
Value:The macro EventStartCv generates a start event for group C with the specified slot number. The Event Recorder stores the integer value parameters v1, v2.
- Parameters
-
[in] | slot | slot number (up to 16 slots, 0..15) |
[in] | v1 | first data value |
[in] | v2 | second data value |
◆ EventStopC
#define EventStopC |
( |
| slot | ) |
|
Value:The macro EventStopC generates a stop event for group C with the specified slot number. The Event Recorder stores filename and line number of the call.
- Parameters
-
[in] | slot | slot number (up to 16 slots, 0..15) |
◆ EventStopCv
#define EventStopCv |
( |
| slot, |
|
|
| v1, |
|
|
| v2 ) |
Value:The macro EventStopCv generates a stop event for group C with the specified slot number. The Event Recorder stores the integer value parameters v1, v2.
- Parameters
-
[in] | slot | slot number (up to 16 slots, 0..15) |
[in] | v1 | first data value |
[in] | v2 | second data value |
◆ EventStartD
#define EventStartD |
( |
| slot | ) |
|
Value:The macro EventStartD generates a start event for group D with the specified slot number. The Event Recorder stores filename and line number of the call.
- Parameters
-
[in] | slot | slot number (up to 16 slots, 0..15) |
◆ EventStartDv
#define EventStartDv |
( |
| slot, |
|
|
| v1, |
|
|
| v2 ) |
Value:The macro EventStartDv generates a start event for group D with the specified slot number. The Event Recorder stores the integer value parameters v1, v2.
- Parameters
-
[in] | slot | slot number (up to 16 slots, 0..15) |
[in] | v1 | first data value |
[in] | v2 | second data value |
◆ EventStopD
#define EventStopD |
( |
| slot | ) |
|
Value:The macro EventStopD generates a stop event for group D with the specified slot number. The Event Recorder stores filename and line number of the call.
- Parameters
-
[in] | slot | slot number (up to 16 slots, 0..15) |
◆ EventStopDv
#define EventStopDv |
( |
| slot, |
|
|
| v1, |
|
|
| v2 ) |
Value:The macro EventStopDv generates a stop event for group D with the specified slot number. The Event Recorder stores the integer value parameters v1, v2.
- Parameters
-
[in] | slot | slot number (up to 16 slots, 0..15) |
[in] | v1 | first data value |
[in] | v2 | second data value |