Skip to content

Commit

Permalink
#2187: Add a note to the documentation about incomplete notes
Browse files Browse the repository at this point in the history
  • Loading branch information
thearusable authored and cz4rs committed Sep 20, 2024
1 parent 9c62d6d commit 2f37c81
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
11 changes: 10 additions & 1 deletion docs/md/trace.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,13 @@ In order to customize when tracing is enabled and disabled, a trace
specification file can be passed to \vt via a command-line flag:
`--vt_trace_spec --vt_trace_spec_file=filename.spec`.

For details about vt's Specification File see \ref spec-file
For details about vt's Specification File see \ref spec-file

\section incremental-tracing Incremental Trace Output

The trace events can be configured to be saved to the file in the incremental matter.
To configure the interval of the flushes use the `--vt_trace_flush_size=X` parameter.
The `X` stands for the number of trace events before the next flush.

\note The incremental flushing will be blocked in the case of an incomplete user notes.
In that scenario there will be no output to the files. All trace events will be kept in memory and will be tried to be flushed on the next interval if the incomplete notes where closed.
3 changes: 3 additions & 0 deletions src/vt/trace/trace_lite.h
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,9 @@ struct TraceLite {
/**
* \brief Flush traces to file
*
* \note The flush will be blocked when having an incomplete user notes.
* In that case method will not flush any traces.
*
* \param[in] useGlobalSync whether a global sync should be invoked before
* flushing output
*/
Expand Down

0 comments on commit 2f37c81

Please sign in to comment.