tracetools
master
Tracing tools and instrumentation for ROS 2
|
Functions | |
template<typename T , typename ... U> | |
const char * | get_symbol (std::function< T(U...)> f) |
Get symbol from an std::function object. More... | |
template<typename L > | |
const char * | get_symbol (L &&l) |
Get symbol from a function-related object. More... | |
const char* tracetools::get_symbol | ( | std::function< T(U...)> | f | ) |
Get symbol from an std::function object.
If function address resolution or symbol demangling fails, this will return a string that starts with TRACETOOLS_SYMBOL_UNKNOWN.
[in] | f | the std::function object |
const char* tracetools::get_symbol | ( | L && | l | ) |
Get symbol from a function-related object.
Fallback meant for lambdas with captures.
[in] | l | a generic object |