Classes | |
struct | DiagStateCounter |
Diagnostic state counting information. More... | |
struct | DiagnosticMessage |
Diagnostic message. More... | |
Typedefs | |
typedef std::vector< std::pair < int, std::string > > | DiagnosticTopics |
A type for a list of framework/user diagnostic topics. Each element of the list is a pair of a bit-mask and a topic name. Topics are defined in a bit-enum, the bit-mask is used to check if a given topic is enabled. | |
Enumerations | |
enum | State { initDiag = 1 << 0, startDiag = 1 << 1, stopDiag = 1 << 2, requestState = 1 << 3, updateFwkTopic = 1 << 4, updateCustomTopic = 1 << 5, updateTsPeriod = 1 << 6 } |
Specific actions to be activated on RT process during diagnostic setting. More... | |
enum | FrameworkTopic { getActionProfiling = 1 << 0, setActionProfiling = 1 << 1, rtActionProfiling = 1 << 2, eventProfiling = 1 << 3, notificationProfiling = 1 << 4, getActionTracking = 1 << 5, setActionTracking = 1 << 6, rtActionTracking = 1 << 7, eventTracking = 1 << 8, notificationTracking = 1 << 9, persistencyTracking = 1 << 10, transactionTracking = 1 << 11, subscriptionTracking = 1 << 12, signalHandlerTracking = 1 << 13, rdaTracking = 1 << 14, startUpTracking = 1 << 15 } |
Bit-enum of framework diagnostic topics. More... | |
enum | Side { framework = 0, user = 1 } |
Sides on which logging is performed. More... | |
enum | Action { undefined = 0, start = 1, stop = 2 } |
Actions for USR traces to be displayed in the profiler In case of modification, don't forget to update 'logActionStr' string-table. TODO: Change this doc, it was coppied from FesaLogger.h. More... | |
enum | Source { main = 0, rt = 1, server = 2, event = 3, notification = 4 } |
Source of the logging message. More... | |
Functions | |
std::string | convertFwkTopicToString (FrameworkTopic topic) |
Convert the topic enumeration value to string. | |
std::string | convertActionToString (Action action) |
Convert the action enumeration value to string. | |
std::string | convertSideToString (Side side) |
Convert the logging side enumeration value to string. | |
std::string | convertSourceToString (Source source) |
Convert the souce of the logging message enumeration value to string. | |
std::string | formatMessage (const DiagnosticMessage &diagMsg) |
Construct a string based on the diagnostic message structure. | |
Variables | |
const std::string | fwkDiagLoggerNamePrefix = "FESA.DIAG.FWK." |
const std::string | userDiagLoggerNamePrefix = "FESA.DIAG.USR." |
const std::string | getActionProfilingStr = "GetActionProfiling" |
const std::string | setActionProfilingStr = "SetActionProfiling" |
const std::string | rtActionProfilingStr = "RTActionProfiling" |
const std::string | eventProfilingStr = "EventProfiling" |
const std::string | notificationProfilingStr = "NotificationProfiling" |
const std::string | getActionTrackingStr = "GetActionTracking" |
const std::string | setActionTrackingStr = "SetActionTracking" |
const std::string | rtActionTrackingStr = "RTActionTracking" |
const std::string | eventTrackingStr = "EventTracking" |
const std::string | notificationTrackingStr = "NotificationTracking" |
const std::string | persistencyTrackingStr = "PersistencyTracking" |
const std::string | transactionTrackingStr = "TransactionTracking" |
const std::string | subscriptionTrackingStr = "SubscriptionTracking" |
const std::string | signalHandlerTrackingStr = "SignalHandlerTracking" |
const std::string | rdaTrackingStr = "RDATracking" |
const std::string | startUpTrackingStr = "StartUpTracking" |
typedef std::vector<std::pair<int, std::string> > fesa::DiagnosticUtils::DiagnosticTopics |
A type for a list of framework/user diagnostic topics. Each element of the list is a pair of a bit-mask and a topic name. Topics are defined in a bit-enum, the bit-mask is used to check if a given topic is enabled.
Definition at line 61 of file DiagnosticUtils.h.
Actions for USR traces to be displayed in the profiler In case of modification, don't forget to update 'logActionStr' string-table. TODO: Change this doc, it was coppied from FesaLogger.h.
Definition at line 125 of file DiagnosticUtils.h.
Bit-enum of framework diagnostic topics.
Definition at line 91 of file DiagnosticUtils.h.
Sides on which logging is performed.
Definition at line 114 of file DiagnosticUtils.h.
Source of the logging message.
Definition at line 135 of file DiagnosticUtils.h.
Specific actions to be activated on RT process during diagnostic setting.
initDiag | |
startDiag | |
stopDiag | |
requestState | |
updateFwkTopic | |
updateCustomTopic | |
updateTsPeriod |
Definition at line 77 of file DiagnosticUtils.h.
std::string fesa::DiagnosticUtils::convertActionToString | ( | Action | action | ) |
Convert the action enumeration value to string.
[in] | action | The action to convert to string |
Definition at line 56 of file DiagnosticUtils.cpp.
References start, stop, and undefined.
Referenced by formatMessage().
std::string fesa::DiagnosticUtils::convertFwkTopicToString | ( | FrameworkTopic | topic | ) |
Convert the topic enumeration value to string.
[in] | topic | The topic to convert to string |
Definition at line 13 of file DiagnosticUtils.cpp.
References eventProfiling, eventProfilingStr, eventTracking, eventTrackingStr, getActionProfiling, getActionProfilingStr, getActionTracking, getActionTrackingStr, notificationProfiling, notificationProfilingStr, notificationTracking, notificationTrackingStr, persistencyTracking, persistencyTrackingStr, rdaTracking, rdaTrackingStr, rtActionProfiling, rtActionProfilingStr, rtActionTracking, rtActionTrackingStr, setActionProfiling, setActionProfilingStr, setActionTracking, setActionTrackingStr, signalHandlerTracking, signalHandlerTrackingStr, startUpTracking, startUpTrackingStr, subscriptionTracking, subscriptionTrackingStr, transactionTracking, and transactionTrackingStr.
std::string fesa::DiagnosticUtils::convertSideToString | ( | Side | side | ) |
Convert the logging side enumeration value to string.
[in] | side | The logging side to convert to string |
Definition at line 73 of file DiagnosticUtils.cpp.
References framework, and user.
Referenced by formatMessage().
std::string fesa::DiagnosticUtils::convertSourceToString | ( | Source | source | ) |
Convert the souce of the logging message enumeration value to string.
[in] | source | The source to convert to string |
Definition at line 88 of file DiagnosticUtils.cpp.
References main, notification, rt, and server.
Referenced by formatMessage().
std::string fesa::DiagnosticUtils::formatMessage | ( | const DiagnosticMessage & | diagMsg | ) |
Construct a string based on the diagnostic message structure.
[in] | diagMsg | The diagnostic message structure |
Definition at line 108 of file DiagnosticUtils.cpp.
References fesa::DiagnosticUtils::DiagnosticMessage::action, convertActionToString(), convertSideToString(), convertSourceToString(), fesa::DiagnosticUtils::DiagnosticMessage::count, fesa::DiagnosticUtils::DiagnosticMessage::msg, fesa::DiagnosticUtils::DiagnosticMessage::name, fesa::DiagnosticUtils::DiagnosticMessage::side, fesa::DiagnosticUtils::DiagnosticMessage::source, and fesa::DiagnosticUtils::DiagnosticMessage::thread.
Referenced by fesa::FrameworkDiagnostics::log().
const std::string fesa::DiagnosticUtils::eventProfilingStr = "EventProfiling" |
Definition at line 42 of file DiagnosticUtils.h.
Referenced by convertFwkTopicToString(), and fesa::FrameworkDiagnostics::FrameworkDiagnostics().
const std::string fesa::DiagnosticUtils::eventTrackingStr = "EventTracking" |
Definition at line 47 of file DiagnosticUtils.h.
Referenced by convertFwkTopicToString(), and fesa::FrameworkDiagnostics::FrameworkDiagnostics().
const std::string fesa::DiagnosticUtils::fwkDiagLoggerNamePrefix = "FESA.DIAG.FWK." |
Definition at line 17 of file DiagnosticUtils.h.
Referenced by fesa::FrameworkDiagnostics::disable(), fesa::FrameworkDiagnostics::enable(), and fesa::FrameworkDiagnostics::log().
const std::string fesa::DiagnosticUtils::getActionProfilingStr = "GetActionProfiling" |
Definition at line 39 of file DiagnosticUtils.h.
Referenced by convertFwkTopicToString(), fesa::SetDiagnosticSetting::execute(), and fesa::FrameworkDiagnostics::FrameworkDiagnostics().
const std::string fesa::DiagnosticUtils::getActionTrackingStr = "GetActionTracking" |
Definition at line 44 of file DiagnosticUtils.h.
Referenced by convertFwkTopicToString(), fesa::SetDiagnosticSetting::execute(), and fesa::FrameworkDiagnostics::FrameworkDiagnostics().
const std::string fesa::DiagnosticUtils::notificationProfilingStr = "NotificationProfiling" |
Definition at line 43 of file DiagnosticUtils.h.
Referenced by convertFwkTopicToString(), and fesa::FrameworkDiagnostics::FrameworkDiagnostics().
const std::string fesa::DiagnosticUtils::notificationTrackingStr = "NotificationTracking" |
Definition at line 48 of file DiagnosticUtils.h.
Referenced by convertFwkTopicToString(), and fesa::FrameworkDiagnostics::FrameworkDiagnostics().
const std::string fesa::DiagnosticUtils::persistencyTrackingStr = "PersistencyTracking" |
Definition at line 49 of file DiagnosticUtils.h.
Referenced by convertFwkTopicToString(), and fesa::FrameworkDiagnostics::FrameworkDiagnostics().
const std::string fesa::DiagnosticUtils::rdaTrackingStr = "RDATracking" |
Definition at line 53 of file DiagnosticUtils.h.
Referenced by convertFwkTopicToString(), and fesa::FrameworkDiagnostics::FrameworkDiagnostics().
const std::string fesa::DiagnosticUtils::rtActionProfilingStr = "RTActionProfiling" |
Definition at line 41 of file DiagnosticUtils.h.
Referenced by convertFwkTopicToString(), fesa::SetDiagnosticSetting::execute(), and fesa::FrameworkDiagnostics::FrameworkDiagnostics().
const std::string fesa::DiagnosticUtils::rtActionTrackingStr = "RTActionTracking" |
Definition at line 46 of file DiagnosticUtils.h.
Referenced by convertFwkTopicToString(), fesa::SetDiagnosticSetting::execute(), and fesa::FrameworkDiagnostics::FrameworkDiagnostics().
const std::string fesa::DiagnosticUtils::setActionProfilingStr = "SetActionProfiling" |
Definition at line 40 of file DiagnosticUtils.h.
Referenced by convertFwkTopicToString(), fesa::SetDiagnosticSetting::execute(), and fesa::FrameworkDiagnostics::FrameworkDiagnostics().
const std::string fesa::DiagnosticUtils::setActionTrackingStr = "SetActionTracking" |
Definition at line 45 of file DiagnosticUtils.h.
Referenced by convertFwkTopicToString(), fesa::SetDiagnosticSetting::execute(), and fesa::FrameworkDiagnostics::FrameworkDiagnostics().
const std::string fesa::DiagnosticUtils::signalHandlerTrackingStr = "SignalHandlerTracking" |
Definition at line 52 of file DiagnosticUtils.h.
Referenced by convertFwkTopicToString(), and fesa::FrameworkDiagnostics::FrameworkDiagnostics().
const std::string fesa::DiagnosticUtils::startUpTrackingStr = "StartUpTracking" |
Definition at line 54 of file DiagnosticUtils.h.
Referenced by convertFwkTopicToString(), and fesa::FrameworkDiagnostics::FrameworkDiagnostics().
const std::string fesa::DiagnosticUtils::subscriptionTrackingStr = "SubscriptionTracking" |
Definition at line 51 of file DiagnosticUtils.h.
Referenced by convertFwkTopicToString(), and fesa::FrameworkDiagnostics::FrameworkDiagnostics().
const std::string fesa::DiagnosticUtils::transactionTrackingStr = "TransactionTracking" |
Definition at line 50 of file DiagnosticUtils.h.
Referenced by convertFwkTopicToString(), and fesa::FrameworkDiagnostics::FrameworkDiagnostics().
const std::string fesa::DiagnosticUtils::userDiagLoggerNamePrefix = "FESA.DIAG.USR." |
Definition at line 18 of file DiagnosticUtils.h.