Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2018-06-20 18:10:06 +0300
committerAnatoli Papirovski <apapirovski@mac.com>2018-06-25 09:04:55 +0300
commit018d6186a7b426026f431b39e709f880868bd03a (patch)
treec328c123904589a1583db717b26f6dae4d7e2977 /src/async_wrap.cc
parentc403eeb7fdf8c1033422b6ea8bf025667892f867 (diff)
src: add native debugging code to workers
Now that we have better native debugging utilities in core, let’s use them :) PR-URL: https://github.com/nodejs/node/pull/21423 Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Matheus Marchini <matheus@sthima.com>
Diffstat (limited to 'src/async_wrap.cc')
-rw-r--r--src/async_wrap.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/async_wrap.cc b/src/async_wrap.cc
index 7734c1b1017..89e82b9ce36 100644
--- a/src/async_wrap.cc
+++ b/src/async_wrap.cc
@@ -803,7 +803,8 @@ void EmitAsyncDestroy(Isolate* isolate, async_context asyncContext) {
std::string AsyncWrap::diagnostic_name() const {
return std::string(provider_names[provider_type()]) +
- " (" + std::to_string(static_cast<int64_t>(async_id_)) + ")";
+ " (" + std::to_string(env()->thread_id()) + ":" +
+ std::to_string(static_cast<int64_t>(async_id_)) + ")";
}
} // namespace node