|
synapse-app-sdk
C++ SDK for Synapse Apps
|
Class for profiling function execution performance. More...
#include <function_profiler.hpp>
Public Member Functions | |
| FunctionProfiler (const std::string &name) | |
| Constructor for FunctionProfiler. | |
| void | start () |
| Start timing a function call. | |
| void | stop () |
| Stop timing and record the duration. | |
| synapse::FunctionProfile | get_profile () |
| Get the current profile statistics. | |
Class for profiling function execution performance.
Tracks execution time statistics for a specific function or code section.
|
explicit |
Constructor for FunctionProfiler.
| name | Name of the function or code section being profiled |
| synapse::FunctionProfile synapse::FunctionProfiler::get_profile | ( | ) |
Get the current profile statistics.