Stan Math Library
5.0.0
Automatic Differentiation
|
Profiles C++ lines where the object is in scope.
When T is var, the constructor starts the profile for the forward pass and places a var with a callback to stop the reverse pass on the AD tape. The destructor stops the profile for the forward pass and places a var with a callback to start the profile for the reverse pass. When T is not var, the constructor and destructor only profile the
T | type of profile class. If var, the created object is used to profile reverse mode AD. Only profiles the forward pass otherwise. |
Definition at line 151 of file profiling.hpp.
#include <profiling.hpp>
Public Member Functions | |
profile (std::string name, profile_map &profiles) | |
~profile () | |
Private Attributes | |
profile_key | key_ |
profile_info * | profile_ |