souffle
2.0.2-371-g6315b36
|
Event Processor Singleton. More...
#include <EventProcessor.h>
Public Member Functions | |
void | process (ProfileDatabase &db, const char *txt,...) |
process a profile event More... | |
void | registerEventProcessor (const std::string &keyword, EventProcessor *processor) |
register an event processor with its keyword More... | |
Static Public Member Functions | |
static EventProcessorSingleton & | instance () |
get instance More... | |
Private Member Functions | |
std::string | escape (const std::string &text) |
Escape escape characters. More... | |
EventProcessorSingleton ()=default | |
Static Private Member Functions | |
static std::vector< std::string > | split (std::string str, std::string split_str) |
split string More... | |
static std::vector< std::string > | splitSignature (std::string str) |
split string separated by semi-colon More... | |
Private Attributes | |
std::map< std::string, EventProcessor * > | registry |
keyword / event processor mapping More... | |
Event Processor Singleton.
Singleton that is the connection point for events
Definition at line 67 of file EventProcessor.h.
|
privatedefault |
|
inlineprivate |
Escape escape characters.
Remove all escapes, then escape double quotes.
Definition at line 111 of file EventProcessor.h.
|
inlinestatic |
get instance
Definition at line 70 of file EventProcessor.h.
Referenced by souffle::ProfileEventSingleton::makeConfigRecord(), souffle::profile::NonRecursiveRuleNumberProcessor::process(), souffle::profile::NonRecursiveRelationNumberProcessor::process(), souffle::profile::RecursiveRelationNumberProcessor::process(), souffle::profile::RelationIOTimingProcessor::process(), souffle::profile::ProgramResourceUtilisationProcessor::process(), and souffle::ProfileEventSingleton::~ProfileEventSingleton().
|
inline |
process a profile event
Definition at line 81 of file EventProcessor.h.
Referenced by souffle::ProfileEventSingleton::makeConfigRecord(), and souffle::ProfileEventSingleton::~ProfileEventSingleton().
|
inline |
register an event processor with its keyword
Definition at line 76 of file EventProcessor.h.
Referenced by souffle::profile::NonRecursiveRuleNumberProcessor::process(), souffle::profile::NonRecursiveRelationNumberProcessor::process(), souffle::profile::RecursiveRelationNumberProcessor::process(), souffle::profile::RelationIOTimingProcessor::process(), and souffle::profile::ProgramResourceUtilisationProcessor::process().
|
inlinestaticprivate |
|
inlinestaticprivate |
split string separated by semi-colon
Definition at line 171 of file EventProcessor.h.
|
private |
keyword / event processor mapping
Definition at line 102 of file EventProcessor.h.