Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bf77161

Browse filesBrowse files
qdaomingRafaelGSS
authored andcommitted
src: dump isolate stats when process exits
When process exits, dump v8 isolate's internal stats for performance evaluation and debugging. It fixed the incorrect profiling log output when running V8's builtin PGO profiling for node.js service type application,which exits by user pressing CTRL+C etc. keys. PR-URL: #44534 Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent 0f232e9 commit bf77161
Copy full SHA for bf77161

File tree

Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed
Open diff view settings
Collapse file

‎src/api/environment.cc‎

Copy file name to clipboardExpand all lines: src/api/environment.cc
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,7 @@ ThreadId AllocateEnvironmentThreadId() {
768768
void DefaultProcessExitHandler(Environment* env, int exit_code) {
769769
env->set_can_call_into_js(false);
770770
env->stop_sub_worker_contexts();
771+
env->isolate()->DumpAndResetStats();
771772
DisposePlatform();
772773
uv_library_shutdown();
773774
exit(exit_code);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.