| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 7cad756 commit 1b04e67
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -485,6 +485,14 @@ TracingController* NodePlatform::GetTracingController() { | |||
| 485 | 485 | return tracing_controller_; | |
| 486 | 486 | } | |
| 487 | 487 | ||
| 488 | + Platform::StackTracePrinter NodePlatform::GetStackTracePrinter() { | ||
| 489 | + return []() { | ||
| 490 | + fprintf(stderr, "\n"); | ||
| 491 | + DumpBacktrace(stderr); | ||
| 492 | + fflush(stderr); | ||
| 493 | + }; | ||
| 494 | + } | ||
| 495 | + | ||
| 488 | 496 | template <class T> | |
| 489 | 497 | TaskQueue<T>::TaskQueue() | |
| 490 | 498 | : lock_(), tasks_available_(), tasks_drained_(), | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -169,6 +169,8 @@ class NodePlatform : public MultiIsolatePlatform { | |||
| 169 | 169 | std::shared_ptr<v8::TaskRunner> GetForegroundTaskRunner( | |
| 170 | 170 | v8::Isolate* isolate) override; | |
| 171 | 171 | ||
| 172 | + Platform::StackTracePrinter GetStackTracePrinter() override; | ||
| 173 | + | ||
| 172 | 174 | private: | |
| 173 | 175 | std::shared_ptr<PerIsolatePlatformData> ForIsolate(v8::Isolate* isolate); | |
| 174 | 176 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments