The probe is used to profile sections of code and dump the measurements to std::cout.
More...
Public Member Functions | |
| probe (void) | |
| Creates an empty probe object that does nothing. | |
| ~probe (void) | |
| Destroys the probe object, stopping the corresponding counter. | |
| probe (probe &&other) | |
| probe & | operator= (probe &&other) |
| probe (probe const &)=delete | |
| probe & | operator= (probe const &)=delete |
| void | stop (void) |
| Stops the probe. | |
| void | swap (probe &other) noexcept |
Static Public Member Functions | |
| static probe | get (std::string const &name) |
| Returns a probe with the given name. | |
| template<typename... U> | |
| static probe | get (U const &... u) |
| Returns a probe with the given prefix and name. | |
| static void | clear (void) |
| Clears all probes. | |
| static std::ostream & | dump (std::ostream &os) |
| Prints all probes. | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, probe const &p) |
The probe is used to profile sections of code and dump the measurements to std::cout.
You can use the probe like this:
1.8.13