background image
<< Partial Trace Flush | Flushing the Trace Buffer through a User Directive >>
<< Partial Trace Flush | Flushing the Trace Buffer through a User Directive >>

Trace Item Buffer

Runtime Analysis
See the Reference Manual for more information about pragma directives.
To control message dump through a user signal (native UNIX only):
This capability is available only when using a native UNIX target platform.
Under UNIX, the kill command allows you to send a user signal to a process.
Runtime Tracing can use this signal to toggle message dump on and off.
1. In
the
Project Explorer, click the Open Settings... button.
2.
Select one or several nodes in the Configuration pane.
3. Select
the
Runtime Analysis node and the Runtime Tracing node.
4. Select
Runtime Tracing Control.
5. Set
the Partial trace flush setting to Yes or No to activate or disable the mode.
6.
When you have finished, click OK to validate the changes.
Note By default, the expected signal is SIGUSR1, but you can change this by
setting the ATT_SIGNAL_DUMP environment variable to the desired signal
number. See the Reference Manual for more information about environment
variables.
Trace Item Buffer
Buffering allows you to reduce formatting and I/O processing at time-critical steps
by telling the Target Deployment Port to only output trace information when its
buffer is full or at user-controlled points.
This can prove useful when using Runtime Tracing on real-time applications, as you
can control buffer flush from within the source-under-trace.
To activate or de-activate trace item buffering:
1. In
the
Project Explorer, click the Open Settings... button.
2.
Select one or several nodes in the Configuration pane.
3. Select
the
Runtime Analysis node and the Runtime Tracing node.
4. Select
Runtime Tracing Control.
5. Set
the Buffer trace items setting to Yes or No to activate or disable the mode.
6.
Set the size of the buffer in the Items buffer size box.
7.
When you have finished, click OK to validate the changes.
A smaller buffer optimizes memory usage on the target platform, whereas a larger
buffer improves performance of the real-time trace. The default value is 64.
91