/arkcompiler/ets_runtime/ecmascript/dfx/tracing/ |
H A D | tracing.cpp | 86 void Tracing::RecordTraceEvent(TraceEvent &event) in RecordTraceEvent() argument 88 bufferSize_ += event.GetEventBufferSize(); in RecordTraceEvent() 91 traceEvents_->emplace_back(event); in RecordTraceEvent() 103 TraceEvent event("disabled-by-default-devtools.timeline", "TracingStartedInBrowser", "I", getpid(), tid_); in TraceEventRecordTracingStart() 104 event.SetTs(ts); in TraceEventRecordTracingStart() 105 event.SetTts(ts); in TraceEventRecordTracingStart() 106 event.SetS("t"); in TraceEventRecordTracingStart() 107 event.SetArgs(args); in TraceEventRecordTracingStart() 109 RecordTraceEvent(event); in TraceEventRecordTracingStart() 119 TraceEvent event("disable in TraceEventRecordMemory() [all...] |
/arkcompiler/runtime_core/libpandabase/utils/ |
H A D | timers.cpp | 99 for (auto &event: events_) { in PrintTimers() 100 auto &timeRecord = timers_.at(event); in PrintTimers() 102 std::string(timeRecord.level, ' ') + std::string(timeRecord.level, '#') + std::string(event); in PrintTimers() 144 void Timer::TimerStartImpl(const std::string_view event, std::string fileName) in TimerStartImpl() argument 149 auto eventIter = eventMap.find(event); in TimerStartImpl() 153 std::cerr << "Undefined event: " << event << ". Please check!" << std::endl; in TimerStartImpl() 157 auto iter = timers_.find(event); in TimerStartImpl() 163 tr.event = event; in TimerStartImpl() 171 TimerEndImpl(const std::string_view event, std::string fileName) TimerEndImpl() argument [all...] |
H A D | timers.h | 46 // Event level, indicating the level of an event, where each event is a sub-event of the nearest preceding level event. 47 // The top-level event's level is 0 58 // Holds pairs of {event, level} according to the order during compilation process. 80 typedef void (*TimeStartFunc)(const std::string_view event, std::string fileName); 81 typedef void (*TimeEndFunc)(const std::string_view event, std::string fileName); 91 std::string event; member 104 static void TimerStartImpl(const std::string_view event, st 106 TimerStartDoNothing(const std::string_view event, std::string fileName = �) TimerStartDoNothing() argument 107 TimerEndDoNothing(const std::string_view event, std::string fileName = �) TimerEndDoNothing() argument [all...] |
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/ |
H A D | std_core_SyncPrimitives.cpp | 43 void EtsEventWait(EtsObject *event) in EtsEventWait() argument 45 ASSERT(event->GetClass() == EtsCoroutine::GetCurrent()->GetPandaVM()->GetClassLinker()->GetEventClass()); in EtsEventWait() 46 EtsEvent::FromEtsObject(event)->Wait(); in EtsEventWait() 49 void EtsEventFire(EtsObject *event) in EtsEventFire() argument 51 ASSERT(event->GetClass() == EtsCoroutine::GetCurrent()->GetPandaVM()->GetClassLinker()->GetEventClass()); in EtsEventFire() 52 EtsEvent::FromEtsObject(event)->Fire(); in EtsEventFire()
|
/arkcompiler/toolchain/tooling/base/ |
H A D | pt_events.cpp | 346 std::unique_ptr<PtJson> event = PtJson::CreateObject(); in TraceEventToJson() local 348 event->Add("args", args); in TraceEventToJson() 349 event->Add("cat", traceEvent.cat_.c_str()); in TraceEventToJson() 352 event->Add("dur", traceEvent.dur_); in TraceEventToJson() 356 event->Add("id", traceEvent.id_.c_str()); in TraceEventToJson() 359 event->Add("name", traceEvent.name_.c_str()); in TraceEventToJson() 360 event->Add("ph", traceEvent.ph_.c_str()); in TraceEventToJson() 361 event->Add("pid", traceEvent.pid_); in TraceEventToJson() 364 event->Add("s", traceEvent.s_.c_str()); in TraceEventToJson() 368 event in TraceEventToJson() [all...] |
/arkcompiler/runtime_core/static_core/plugins/ets/tests/runtime/types/ |
H A D | ets_finalizable_weak_ref_test.cpp | 166 TestEvent<EVENT_COUNT> event; in TEST_F() local 175 vm_->RegisterFinalizerForObject(coro, handle, TestEvent<EVENT_COUNT>::Finalize, &event); in TEST_F() 182 ASSERT(!event.IsHappened()); in TEST_F() 190 event.Wait(); in TEST_F() 191 ASSERT(event.IsHappened()); in TEST_F()
|
/arkcompiler/runtime_core/static_core/runtime/coroutines/ |
H A D | coroutine.h | 74 * @param event an instance of CompletionEvent to be used on coroutine completion to pass the 82 explicit ManagedEntrypointInfo(CompletionEvent *event, Method *entry, PandaVector<Value> &&args) in ManagedEntrypointInfo() 83 : completionEvent(event), entrypoint(entry), arguments(std::move(args)) in ManagedEntrypointInfo() 85 ASSERT(event != nullptr); in ManagedEntrypointInfo() 276 explicit ManagedEntrypointData(CompletionEvent *event, Method *entry, PandaVector<Value> &&args) in ManagedEntrypointData() 277 : completionEvent(event), entrypoint(entry), arguments(std::move(args)) in ManagedEntrypointData() 279 ASSERT(event != nullptr); in ManagedEntrypointData()
|
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/types/ |
H A D | ets_promise.cpp | 33 auto *event = EtsEvent::Create(coro); in Create() local 34 hPromise->SetEvent(coro, event); in Create() 80 auto *event = Runtime::GetCurrent()->GetInternalAllocator()->New<CompletionEvent>(nullptr, coroManager); in LaunchCallback() local 84 [[maybe_unused]] auto *launchedCoro = coroManager->Launch(event, method, std::move(args), launchMode); in LaunchCallback()
|
H A D | ets_sync_primitives.h | 79 auto &event = awaitee->GetEvent(); in SuspendCoroutine() local 80 // Need to lock event before PushBack in SuspendCoroutine() 82 event.Lock(); in SuspendCoroutine() 84 coroManager->Await(&event); in SuspendCoroutine() 150 /// @brief Coroutine one-shot event. This allows to block current coroutine until event is fired 154 * Blocks current coroutine until another coroutine will fire the same event. 161 * Unblocks all coroutines that are waiting the same event.
|
H A D | ets_promise.h | 163 void SetEvent(EtsCoroutine *coro, EtsEvent *event) in SetEvent() argument 165 ObjectAccessor::SetObject(coro, this, MEMBER_OFFSET(EtsPromise, event_), event->GetCoreType()); in SetEvent() 237 auto *event = GetEvent(EtsCoroutine::GetCurrent()); in Wait() local 238 ASSERT(event != nullptr); in Wait() 239 event->Wait(); in Wait()
|
/arkcompiler/runtime_core/static_core/runtime/tests/ |
H A D | interpreter_test_switch.cpp | 148 auto &event = listener.GetEvents()[0]; in TEST_F() local 149 EXPECT_EQ(event.thread, thread); in TEST_F() 150 EXPECT_EQ(event.method, mainMethod); in TEST_F() 151 EXPECT_EQ(event.bcOffset, BytecodeInstruction::Size(BytecodeInstruction::Format::V4_V4_ID16)); in TEST_F()
|
/arkcompiler/toolchain/test/fuzztest/protocolhandlernotif_fuzzer/ |
H A D | protocolhandlernotif_fuzzer.cpp | 38 Paused event;
in ProtocolHandlerNotifFuzzTest() local 39 handler.SendNotification(event);
in ProtocolHandlerNotifFuzzTest()
|
/arkcompiler/runtime_core/static_core/runtime/tests/tooling/ |
H A D | test_util.h | 95 static void Event(DebugEvent event, PtThread thread = PtThread::NONE, in Event() argument 98 LOG(DEBUG, DEBUGGER) << "Occured event " << event << " in thread with id " << thread.GetId(); in Event() 100 lastEvent_ = event; in Event() 103 if (event == DebugEvent::VM_INITIALIZATION) { in Event() 151 // Notify the debugger thread about the suspend event in SuspendUntilContinue() 193 static bool WaitForEvent(DebugEvent event, Predicate predicate, OnSuccessAction action) in WaitForEvent() argument 203 LOG(FATAL, DEBUGGER) << "Time limit exceeded while waiting " << event; in WaitForEvent()
|
/arkcompiler/toolchain/tooling/test/utils/ |
H A D | test_util.h | 114 static void Event(DebugEvent event, JSPtLocation location = JSPtLocation(nullptr, EntityId(0), 0)) in Event() argument 116 LOG_DEBUGGER(DEBUG) << "Occurred event " << event; in Event() 118 lastEvent_ = event; in Event() 120 if (event == DebugEvent::VM_START) { in Event() 172 // Notify the debugger thread about the suspend event in SuspendUntilContinue() 198 static bool WaitForEvent(DebugEvent event, Predicate predicate, OnSuccessAction action) in WaitForEvent() argument 208 LOG_DEBUGGER(FATAL) << "Time limit exceeded while waiting " << event; in WaitForEvent()
|
/arkcompiler/runtime_core/libpandabase/events/ |
H A D | events.rb | 27 def initialize(event, dscr) 31 @type = event.name.camelize + dscr['name'].camelize
|
/arkcompiler/runtime_core/static_core/libpandabase/events/ |
H A D | events.rb | 31 def initialize(event, dscr) 35 @type = event.name.camelize + dscr['name'].camelize
|
/arkcompiler/toolchain/tooling/test/ |
H A D | tracing_impl_test.cpp | 230 TraceEvent event("timeline", "UpdateCounters", "I", getpid(), 1415); in HWTEST_F_L0() 231 event.SetTs(ts); in HWTEST_F_L0() 232 event.SetTts(ts); in HWTEST_F_L0() 233 event.SetS("t"); in HWTEST_F_L0() 235 event.SetArgs(args); in HWTEST_F_L0() 237 traceEvents->emplace_back(event); in HWTEST_F_L0() 251 traceEvents1->emplace_back(event); in HWTEST_F_L0()
|
H A D | debugger_events_test.cpp | 495 TraceEvent event("timeline", "UpdateCounters", "I", getpid(), 1415); in HWTEST_F_L0() 496 event.SetTs(ts); in HWTEST_F_L0() 497 event.SetTts(ts); in HWTEST_F_L0() 498 event.SetS("t"); in HWTEST_F_L0() 500 event.SetArgs(args); in HWTEST_F_L0() 501 traceEvents->emplace_back(event); in HWTEST_F_L0()
|
/arkcompiler/toolchain/tooling/test/client_utils/ |
H A D | test_actions.h | 77 TestCase event = TestCase::COMMON; member
|
/arkcompiler/runtime_core/tests/checked/ |
H A D | checker.rb | 275 @events_scope.lines.count { |event| contains?(event, match) } 293 res = @events_scope.lines.count { |event| contains?(event, match) }
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/arkdb/ |
H A D | debug_connection.py | 85 async for event in self._conn.listen(event_type): 86 handler(event)
|
H A D | debug_client.py | 196 def _on_script_parsed(self, event: debugger.ScriptParsed): 205 async for event in self.connection.listen(T): 206 handler(event)
|
/arkcompiler/runtime_core/static_core/tests/checked/ |
H A D | checker.rb | 400 @events_scope.lines.count { |event| contains?(event, match) } 418 res = @events_scope.lines.count { |event| contains?(event, match) }
|
/arkcompiler/runtime_core/static_core/runtime/methodtrace/ |
H A D | trace.cpp | 174 void Trace::WriteInfoToBuf(const ManagedThread *thread, Method *method, EventFlag event, uint32_t threadTime, in WriteInfoToBuf() argument 192 switch (event) { in WriteInfoToBuf()
|
H A D | trace.h | 127 void WriteInfoToBuf(const ManagedThread *thread, Method *method, EventFlag event, uint32_t threadTime,
|