Result of FPE monitoring containing counts and stack traces.
More...
#include </home/runner/work/acts/acts/Plugins/FpeMonitoring/include/ActsPlugins/FpeMonitoring/FpeMonitor.hpp>
|
| struct | FpeInfo |
| | Information about a floating-point exception occurrence. More...
|
|
| void | add (FpeType type, void *stackPtr, std::size_t bufferSize, std::uintptr_t location=0) |
| | Add an exception occurrence from raw stack data.
|
| bool | contains (const FpeInfo &info) const |
| | Check if result contains an exception info entry under merge semantics.
|
| unsigned int | count (FpeType type) const |
| | Get count of exceptions of a specific type.
|
|
void | deduplicate () |
| | Remove duplicate stack traces.
|
| bool | encountered (FpeType type) const |
| | Check if an exception type was encountered.
|
| bool | hasStackTraces () const |
| | Check if there are any stack traces.
|
| void | merge (const Result &with) |
| | Merge another result into this one.
|
| Result | merged (const Result &with) const |
| | Merge with another result and return new result.
|
| unsigned int | numStackTraces () const |
| | Get number of stack traces.
|
| const std::vector< FpeInfo > & | stackTraces () const |
| | Get all stack traces.
|
| void | summary (std::ostream &os, std::size_t depth=std::numeric_limits< std::size_t >::max()) const |
| | Print summary of exceptions.
|
Result of FPE monitoring containing counts and stack traces.
◆ add()
| void ActsPlugins::FpeMonitor::Result::add |
( |
FpeType | type, |
|
|
void * | stackPtr, |
|
|
std::size_t | bufferSize, |
|
|
std::uintptr_t | location = 0 ) |
Add an exception occurrence from raw stack data.
- Parameters
-
| type | Exception type |
| stackPtr | Pointer to stack data |
| bufferSize | Size of stack buffer |
| location | Faulting instruction address if available |
◆ contains()
| bool ActsPlugins::FpeMonitor::Result::contains |
( |
const FpeInfo & | info | ) |
const |
Check if result contains an exception info entry under merge semantics.
- Parameters
-
| info | Exception info to check |
- Returns
- True if contained
◆ count()
| unsigned int ActsPlugins::FpeMonitor::Result::count |
( |
FpeType | type | ) |
const |
Get count of exceptions of a specific type.
- Parameters
-
- Returns
- Number of occurrences
◆ encountered()
| bool ActsPlugins::FpeMonitor::Result::encountered |
( |
FpeType | type | ) |
const |
Check if an exception type was encountered.
- Parameters
-
| type | Exception type to check |
- Returns
- True if encountered
◆ hasStackTraces()
| bool ActsPlugins::FpeMonitor::Result::hasStackTraces |
( |
| ) |
const |
Check if there are any stack traces.
- Returns
- True if stack traces are present
◆ merge()
| void ActsPlugins::FpeMonitor::Result::merge |
( |
const Result & | with | ) |
|
Merge another result into this one.
- Parameters
-
◆ merged()
| Result ActsPlugins::FpeMonitor::Result::merged |
( |
const Result & | with | ) |
const |
Merge with another result and return new result.
- Parameters
-
- Returns
- Merged result
◆ numStackTraces()
| unsigned int ActsPlugins::FpeMonitor::Result::numStackTraces |
( |
| ) |
const |
Get number of stack traces.
- Returns
- Number of stack traces
◆ stackTraces()
| const std::vector< FpeInfo > & ActsPlugins::FpeMonitor::Result::stackTraces |
( |
| ) |
const |
Get all stack traces.
- Returns
- Vector of FPE information
◆ summary()
| void ActsPlugins::FpeMonitor::Result::summary |
( |
std::ostream & | os, |
|
|
std::size_t | depth = std::numeric_limits< std::size_t >::max() ) const |
Print summary of exceptions.
- Parameters
-
| os | Output stream |
| depth | Maximum stack trace depth |