| /arkcompiler/runtime_core/libpandabase/utils/ |
| D | logger.h | 68 using ComponentMask = std::bitset<Component::LAST>; 121 Message(Level level, Component component, bool print_system_error) in Message() argument 122 : level_(level), component_(component), print_system_error_(print_system_error) in Message() 138 Component component_; 167 void WriteMobileLog(Level level, const char *component, const char *message) in WriteMobileLog() argument 192 std::string panda_component = "Ark " + std::string(component); in WriteMobileLog() 196 static bool IsLoggingOn(Level level, Component component) in IsLoggingOn() argument 199 (logger->component_mask_.test(component) || level == Level::FATAL); in IsLoggingOn() 202 static bool IsLoggingOnOrAbort(Level level, Component component) in IsLoggingOnOrAbort() argument 204 if (IsLoggingOn(level, component)) { in IsLoggingOnOrAbort() [all …]
|
| D | logger.cpp | 86 bool Logger::IsMessageSuppressed([[maybe_unused]] Level level, [[maybe_unused]] Component component) in IsMessageSuppressed() argument 146 void Logger::Log(Level level, Component component, const std::string &str) in Log() argument 148 if (!IsLoggingOn(level, component)) { in Log() 153 if (!IsLoggingOn(level, component)) { in Log() 159 logger->LogLineInternal(level, component, str); in Log() 160 logger->WriteMobileLog(level, GetComponentTag(component), str.c_str()); in Log() 165 logger->LogLineInternal(level, component, line); in Log() 166 logger->WriteMobileLog(level, GetComponentTag(component), line.c_str()); in Log() 171 logger->LogLineInternal(level, component, str.substr(i)); in Log() 172 logger->WriteMobileLog(level, GetComponentTag(component), str.substr(i).c_str()); in Log() [all …]
|
| /arkcompiler/runtime_core/static_core/libpandabase/utils/ |
| D | logger.h | 54 using ComponentMask = std::bitset<Component::LAST>; 107 PANDA_PUBLIC_API Message(Level level, Component component, bool printSystemError) in Message() argument 108 : level_(level), component_(component), printSystemError_(printSystemError) in Message() 124 Component component_; 150 void WriteMobileLog(Level level, const char *component, const char *message) in WriteMobileLog() argument 175 std::string pandaComponent = "Ark " + std::string(component); in WriteMobileLog() 179 static bool IsLoggingOn(Level level, Component component) in IsLoggingOn() argument 182 (logger_->componentMask_.test(component) || level == Level::FATAL); in IsLoggingOn() 185 PANDA_PUBLIC_API static bool IsLoggingOnOrAbort(Level level, Component component) in IsLoggingOnOrAbort() argument 187 if (IsLoggingOn(level, component)) { in IsLoggingOnOrAbort() [all …]
|
| D | logger.cpp | 87 bool Logger::IsMessageSuppressed([[maybe_unused]] Level level, [[maybe_unused]] Component component) in IsMessageSuppressed() argument 143 void Logger::Log(Level level, Component component, const std::string &str) in Log() argument 145 if (!IsLoggingOn(level, component)) { in Log() 150 if (!IsLoggingOn(level, component)) { in Log() 156 logger_->LogLineInternal(level, component, str); in Log() 157 logger_->WriteMobileLog(level, GetComponentTag(component), str.c_str()); in Log() 162 logger_->LogLineInternal(level, component, line); in Log() 163 logger_->WriteMobileLog(level, GetComponentTag(component), line.c_str()); in Log() 168 logger_->LogLineInternal(level, component, str.substr(i)); in Log() 169 logger_->WriteMobileLog(level, GetComponentTag(component), str.substr(i).c_str()); in Log() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | log.h | 51 enum Component { enum 83 static inline bool LogIsLoggable(Level level, Component component) in LogIsLoggable() argument 85 switch (component) in LogIsLoggable() 87 case Component::SA: in LogIsLoggable() 88 return ((components_ & component) != 0ULL); in LogIsLoggable() 90 return (level >= level_) && ((components_ & component) != 0ULL); in LogIsLoggable() 93 static inline std::string GetComponentStr(Component component) in GetComponentStr() argument 95 switch (component) in GetComponentStr() 97 case Component::NO_TAG: in GetComponentStr() 99 case Component::GC: in GetComponentStr() [all …]
|
| D | log_wrapper.h | 22 #define LOG_NO_TAG(level) ARK_LOG(level, Component::NO_TAG) 23 #define LOG_ECMA(level) ARK_LOG(level, Component::ECMASCRIPT) 24 #define LOG_PGO(level) ARK_LOG(level, Component::PGO) 25 #define LOG_FULL(level) ARK_LOG(level, Component::ALL) << "[" << __func__ << ":" << __LINE__ << "] " 26 #define LOG_GC(level) ARK_LOG(level, Component::GC) 27 #define LOG_INTERPRETER(level) ARK_LOG(level, Component::INTERPRETER) 28 #define LOG_COMPILER(level) ARK_LOG(level, Component::COMPILER) 29 #define LOG_DEBUGGER(level) ARK_LOG(level, Component::DEBUGGER) 30 #define LOG_BUILTINS(level) ARK_LOG(level, Component::BUILTINS) 31 #define LOG_TRACE(level) ARK_LOG(level, Component::TRACE) [all …]
|
| D | log.cpp | 67 ComponentMark Log::components_ = Component::ALL; 148 components_ = Component::NONE; in SetLogComponentFromString() 149 for (const auto &component : components) { in SetLogComponentFromString() local 150 if (component == "all") { in SetLogComponentFromString() 151 components_ = Component::ALL; in SetLogComponentFromString() 154 if (component == "gc") { in SetLogComponentFromString() 155 components_ |= Component::GC; in SetLogComponentFromString() 158 if (component == "ecmascript") { in SetLogComponentFromString() 159 components_ |= Component::ECMASCRIPT; in SetLogComponentFromString() 162 if (component == "pgo") { in SetLogComponentFromString() [all …]
|
| /arkcompiler/runtime_core/libpandabase/tests/ |
| D | logger_test.cpp | 43 EXPECT_FALSE(Logger::IsLoggingOn(Logger::Level::FATAL, Logger::Component::ALLOC)); 58 EXPECT_TRUE(Logger::IsLoggingOn(Logger::Level::FATAL, Logger::Component::ALLOC)); 80 EXPECT_FALSE(Logger::IsLoggingOn(Logger::Level::FATAL, Logger::Component::ALLOC)); 99 component_mask.set(Logger::Component::COMPILER); 102 EXPECT_TRUE(Logger::IsLoggingOn(Logger::Level::FATAL, Logger::Component::COMPILER)); 103 EXPECT_TRUE(Logger::IsLoggingOn(Logger::Level::FATAL, Logger::Component::ASSEMBLER)); 104 EXPECT_TRUE(Logger::IsLoggingOn(Logger::Level::FATAL, Logger::Component::DISASSEMBLER)); 105 EXPECT_FALSE(Logger::IsLoggingOn(Logger::Level::ERROR, Logger::Component::COMPILER)); 106 EXPECT_FALSE(Logger::IsLoggingOn(Logger::Level::ERROR, Logger::Component::ASSEMBLER)); 107 EXPECT_FALSE(Logger::IsLoggingOn(Logger::Level::ERROR, Logger::Component::DISASSEMBLER)); [all …]
|
| /arkcompiler/runtime_core/static_core/libpandabase/tests/ |
| D | logger_test.cpp | 35 EXPECT_FALSE(Logger::IsLoggingOn(Logger::Level::FATAL, Logger::Component::ALLOC)); in DEATH_TEST() 50 EXPECT_TRUE(Logger::IsLoggingOn(Logger::Level::FATAL, Logger::Component::ALLOC)); in DEATH_TEST() 72 EXPECT_FALSE(Logger::IsLoggingOn(Logger::Level::FATAL, Logger::Component::ALLOC)); in DEATH_TEST() 91 componentMask.set(Logger::Component::COMPILER); in DEATH_TEST() 94 EXPECT_TRUE(Logger::IsLoggingOn(Logger::Level::FATAL, Logger::Component::COMPILER)); in DEATH_TEST() 95 EXPECT_TRUE(Logger::IsLoggingOn(Logger::Level::FATAL, Logger::Component::ASSEMBLER)); in DEATH_TEST() 96 EXPECT_TRUE(Logger::IsLoggingOn(Logger::Level::FATAL, Logger::Component::DISASSEMBLER)); in DEATH_TEST() 97 EXPECT_FALSE(Logger::IsLoggingOn(Logger::Level::ERROR, Logger::Component::COMPILER)); in DEATH_TEST() 98 EXPECT_FALSE(Logger::IsLoggingOn(Logger::Level::ERROR, Logger::Component::ASSEMBLER)); in DEATH_TEST() 99 EXPECT_FALSE(Logger::IsLoggingOn(Logger::Level::ERROR, Logger::Component::DISASSEMBLER)); in DEATH_TEST() [all …]
|
| /arkcompiler/runtime_core/static_core/docs/diagrams/ |
| D | task_manager-components.plantuml | 16 component "Worker thread 1" { 19 component "Worker thread 2" { 22 component "Worker thread 3" { 27 component TaskManager {
|
| /arkcompiler/runtime_core/static_core/templates/ |
| D | messages.rb | 16 Message = Struct.new(:name, :component, :number, :level, :args, :short_message, :message, keyword_i… 18 ['LOG', component, Messages.split_words(name)].flatten.join('_').upcase 30 msg = is_short ? "#{component} #{level} #{number}: #{short_message}" : message 70 @component = data.component.capitalize 79 component: @component, 89 [:component, :enum_name, :namespace, :messages].each do |attr|
|
| /arkcompiler/runtime_core/templates/ |
| D | messages.rb | 16 Message = Struct.new(:name, :component, :number, :level, :args, :short_message, :message, keyword_i… 18 ['LOG', component, Messages.split_words(name)].flatten.join('_').upcase 30 msg = is_short ? "#{component} #{level} #{number}: #{short_message}" : message 70 @component = data.component.capitalize 79 component: @component, 89 [:component, :enum_name, :namespace, :messages].each do |attr|
|
| /arkcompiler/runtime_core/static_core/plugins/ets/doc/spec/ |
| D | 16_gui.rst | 137 The following syntax conventions apply to any builder function (component’s 138 main builder, component’s custom builder, or stand-alone global custom builder): 140 - The required result of ``C({...})`` for any predefined or custom component 141 *C* is to initialize and render the component with the data from the 145 component’s fields. 147 - The required result of ``C() {...}`` for any predefined or custom component 148 *C* is to initialize and render the component by passing the data 149 from the ``{...}`` block to the component’s builder function. Specific 166 component field 167 component function [all …]
|
| /arkcompiler/runtime_core/static_core/templates/messages/ |
| D | messages.h.erb | 17 % component = Messages.component.upcase 18 #ifndef PANDA_<%= component %>_MESSAGES_GEN_H_ 19 #define PANDA_<%= component %>_MESSAGES_GEN_H_ 45 LOG(<%= level %>, <%= component %>) << <%= msg.stream_ops(true) %>; \ 48 LOG(DEBUG, <%= component %>) << <%= msg.stream_ops(false) %>; 84 #endif // PANDA_<%= component %>_MESSAGES_GEN_H_
|
| /arkcompiler/runtime_core/templates/messages/ |
| D | messages.h.erb | 17 % component = Messages.component.upcase 18 #ifndef PANDA_<%= component %>_MESSAGES_GEN_H_ 19 #define PANDA_<%= component %>_MESSAGES_GEN_H_ 43 LOG(<%= level %>, <%= component %>) << <%= msg.stream_ops(true) %>; \ 46 LOG(DEBUG, <%= component %>) << <%= msg.stream_ops(false) %>; 80 #endif // PANDA_<%= component %>_MESSAGES_GEN_H_
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/spec/16.Support_for_GUI_Programming/annotations/ |
| D | annotation_@Builder_2.sts | 22 @Component 56 @Component 70 Text("Component Builder func param to Component Builder func") 78 Text("Global builder func param to Component Builder func")
|
| D | annotation_@Consume.sts | 22 @Component 37 @Component 48 @Component 57 @Component
|
| D | annotation_@Link.sts | 17 desc: 04.03 Bi-bidirectional syncing with a variable of parent component @Link 22 @Component 33 @Component 45 @Component
|
| D | annotation_@Entry.sts | 17 desc: 02.02.03 Default page entry component @Entry 22 @Component 34 @Component
|
| D | annotation_@Builder.sts | 17 …desc: 02.04.06 Custom component variable holding a @Builder function reference @BuilderParam and B… 36 @Component 58 @Component 64 Text(`2 + 3 - component builder`)
|
| D | annotation_@State_3.sts | 22 @Component 37 @Component 48 @Component
|
| /arkcompiler/runtime_core/static_core/runtime/tooling/inspector/connection/asio/ |
| D | ws_logger.cpp | 40 auto component = Logger::Component::DEBUGGER; in write() local 42 if (!Logger::IsLoggingOnOrAbort(level, component)) { in write() 47 if (Logger::IsMessageSuppressed(level, component)) { in write() 52 Logger::Message message(level, component, false); in write()
|
| /arkcompiler/runtime_core/static_core/libpandabase/templates/ |
| D | logger_impl_gen.inc.erb | 18 static const char *GetComponentTag(Logger::Component component) 21 if (component == Logger::Component::<%= c.enum %>) { 57 return ark::Logger::ComponentMask().set(Logger::Component::<%= c.enum %>);
|
| /arkcompiler/runtime_core/libpandabase/templates/ |
| D | logger_impl_gen.inc.erb | 18 static const char *GetComponentTag(Logger::Component component) 21 if (component == Logger::Component::<%= c.enum %>) { 57 return panda::Logger::ComponentMask().set(Logger::Component::<%= c.enum %>);
|
| /arkcompiler/runtime_core/scripts/ |
| D | install-third-party | 91 while read -r component 93 component=$(echo "$component" | perl -lane 'chomp; s/^\s+//; s/\s+$//; print $_') 95 if [[ "$component" == "" || "$component" =~ ^# ]] ; then 99 IFS=',' read -r -a info <<< "$component"
|