bactria
0.0.1
The bactria library is a header-only C++14 library for profiling and tracing.
|
The report class. More...
#include <Report.hpp>
Public Member Functions | |
Report ()=default | |
Default constructor. More... | |
Report (std::string name, TIncidents &&... incidents) | |
Constructor. More... | |
Report (Report const &other) | |
Copy constructor. More... | |
auto | operator= (Report const &rhs) -> Report & |
Copy-assignment operator. More... | |
Report (Report &&other) noexcept | |
Move constructor. More... | |
auto | operator= (Report &&rhs) noexcept -> Report & |
Move-assignment operator. More... | |
~Report () | |
Destructor. | |
auto | submit () const |
Save the report. More... | |
The report class.
A report contains multiple entries (of type Incident). By submitting a report the user can save these entries (the exact location depends on the selected plugin).
TIncidents | List of values (of type Incident) recorded by the report. |
|
default |
|
inline |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
Move-assignment operator.
Moves the contents of rhs into this
. After the move, this
will have taken over the contents of rhs, while rhs is in an undefined state.
rhs | The Report to move into this . |
|
inline |
|
inline |
Save the report.
This method physically stores the report to a location defined by the plugin. This is usually a file where the prefix corresponds to the name supplied by the user during Report construction, while the suffix is a plugin-specific extension. Refer to the documentation of the plugin in question to gather information about the concrete storage of the Report.