Home
last modified time | relevance | path

Searched refs:AsyncHooks (Results 1 – 19 of 19) sorted by relevance

/third_party/node/src/
Denv-inl.h73 inline AsyncHooks::AsyncHooks() in AsyncHooks() function
90 async_id_fields_[AsyncHooks::kDefaultTriggerAsyncId] = -1; in AsyncHooks()
94 async_id_fields_[AsyncHooks::kAsyncIdCounter] = 1; in AsyncHooks()
96 inline AliasedUint32Array& AsyncHooks::fields() { in fields()
100 inline AliasedFloat64Array& AsyncHooks::async_id_fields() { in async_id_fields()
104 inline AliasedFloat64Array& AsyncHooks::async_ids_stack() { in async_ids_stack()
108 v8::Local<v8::Array> AsyncHooks::js_execution_async_resources() { in js_execution_async_resources()
116 v8::Local<v8::Object> AsyncHooks::native_execution_async_resource(size_t i) { in native_execution_async_resource()
121 inline void AsyncHooks::SetJSPromiseHooks(v8::Local<v8::Function> init, in SetJSPromiseHooks()
140 inline v8::Local<v8::String> AsyncHooks::provider_string(int idx) { in provider_string()
[all …]
Dasync_wrap.cc128 void Emit(Environment* env, double async_id, AsyncHooks::Fields type, in Emit()
130 AsyncHooks* async_hooks = env->async_hooks(); in Emit()
143 Emit(env, async_id, AsyncHooks::kPromiseResolve, in EmitPromiseResolve()
165 Emit(env, async_id, AsyncHooks::kBefore, in EmitBefore()
189 Emit(env, async_id, AsyncHooks::kAfter, in EmitAfter()
448 constants, #name, Integer::New(isolate, AsyncHooks::name)) in Initialize()
568 if (env->async_hooks()->fields()[AsyncHooks::kDestroy] == 0 || in EmitDestroy()
657 AsyncHooks* async_hooks = env->async_hooks(); in EmitAsyncInit()
660 if (async_hooks->fields()[AsyncHooks::kInit] == 0) { in EmitAsyncInit()
Denv.h624 class AsyncHooks : public MemoryRetainer {
626 SET_MEMORY_INFO_NAME(AsyncHooks)
627 SET_SELF_SIZE(AsyncHooks)
681 AsyncHooks(const AsyncHooks&) = delete;
682 AsyncHooks& operator=(const AsyncHooks&) = delete;
683 AsyncHooks(AsyncHooks&&) = delete;
684 AsyncHooks& operator=(AsyncHooks&&) = delete;
685 ~AsyncHooks() = default;
705 AsyncHooks* async_hooks_;
711 inline AsyncHooks();
[all …]
Dasync_wrap-inl.h85 inline AsyncHooks::DefaultTriggerAsyncIdScope ::DefaultTriggerAsyncIdScope( in DefaultTriggerAsyncIdScope()
Dstream_base-inl.h141 AsyncHooks::DefaultTriggerAsyncIdScope trigger_scope(GetAsyncWrap()); in Shutdown()
193 AsyncHooks::DefaultTriggerAsyncIdScope trigger_scope(GetAsyncWrap()); in Write()
Dtcp_wrap.cc58 AsyncHooks::DefaultTriggerAsyncIdScope trigger_scope(parent); in Instantiate()
311 AsyncHooks::DefaultTriggerAsyncIdScope trigger_scope(wrap); in Connect()
Dpipe_wrap.cc52 AsyncHooks::DefaultTriggerAsyncIdScope trigger_scope(parent); in Instantiate()
Dudp_wrap.cc577 AsyncHooks::DefaultTriggerAsyncIdScope trigger_scope(this); in Send()
726 AsyncHooks::DefaultTriggerAsyncIdScope trigger_scope(parent); in Instantiate()
Dnode_worker.cc767 AsyncHooks::DefaultTriggerAsyncIdScope trigger_id_scope(w); in TakeHeapSnapshot()
787 AsyncHooks::DefaultTriggerAsyncIdScope trigger_id_scope(taker.get()); in TakeHeapSnapshot()
Denv.cc1003 void AsyncHooks::MemoryInfo(MemoryTracker* tracker) const { in MemoryInfo()
1010 void AsyncHooks::grow_async_ids_stack() { in grow_async_ids_stack()
Dstream_base.cc467 AsyncHooks::DefaultTriggerAsyncIdScope trigger_scope(wrap->GetAsyncWrap()); in JSMethod()
Dnode_file.cc442 AsyncHooks::DefaultTriggerAsyncIdScope trigger_scope(this); in ReadStart()
/third_party/node/src/api/
Dcallback.cc130 if (env_->async_hooks()->fields()[AsyncHooks::kTotals]) { in Close()
172 AsyncHooks* async_hooks = env->async_hooks(); in InternalMakeCallback()
178 async_hooks->fields()[AsyncHooks::kBefore] + in InternalMakeCallback()
179 async_hooks->fields()[AsyncHooks::kAfter] + in InternalMakeCallback()
180 async_hooks->fields()[AsyncHooks::kUsesExecutionAsyncResource] > 0; in InternalMakeCallback()
/third_party/node/test/async-hooks/
Dcoverage.md1 # AsyncHooks Coverage Overview
/third_party/node/doc/api/
Dasync_hooks.md151 ### Printing in AsyncHooks callbacks
154 will cause the AsyncHooks callbacks to be called. Using `console.log()` or
155 similar asynchronous operations inside an AsyncHooks callback function will thus
158 This will print to the file and will not invoke AsyncHooks recursively because
166 // Use a function like this one when debugging inside an AsyncHooks callback
173 provided by AsyncHooks itself. The logging should then be skipped when
174 it was the logging itself that caused AsyncHooks callback to call. By
685 // * trigger the AsyncHooks before callbacks
687 // * trigger the AsyncHooks after callbacks
691 // Call AsyncHooks destroy callbacks.
[all …]
Ddeprecations.md1676 ### DEP0085: AsyncHooks sensitive API
1691 The AsyncHooks sensitive API was never documented and had various minor issues.
1844 ### DEP0098: AsyncHooks embedder `AsyncResource.emitBefore` and `AsyncResource.emitAfter` APIs
1860 The embedded API provided by AsyncHooks exposes `.emitBefore()` and
Derrors.md654 `AsyncHooks` callback.
1373 An invalid `asyncId` or `triggerAsyncId` was passed using `AsyncHooks`. An id
/third_party/node/doc/changelogs/
DCHANGELOG_V9.md1107 …* deprecate AsyncHooks Sensitive API and runInAsyncIdScope. Neither API were documented. (Andreas …
DCHANGELOG_V11.md347 * [[`4af9ff00ff`](https://github.com/nodejs/node/commit/4af9ff00ff)] - **src**: move AsyncHooks out…