我的应用程序是棋盘游戏的网络版Settlers of Catan .
我正在使用 node --prof app.js
配置应用程序和 node --prof-process ISOLATE_LOG_FILE > processed.txt
把它们变成一个处理过的文件。
我确实收到了很多 Code move event for unknown code
事件:https://prnt.sc/q69ugk
最后我留下了一个文件,如下所示:Statistical profiling result from isolate-0x3df60c0-v8.log, (13113 ticks, 192 unaccounted, 0 excluded).
最佳答案
epoll_pwait本质上意味着您的应用程序(事件循环)正在等待某些东西,即 I/O 操作。
引用上面的链接:
调用 epoll_pwait()
将阻塞直到:
• a file descriptor delivers an event;
• the call is interrupted by a signal handler; or
• the timeout expires.
为了进一步调试,我真正想到的是,如果您有任何
setInterval
具有很少或零超时的代码,如果是这样,请发布您传递给间隔的回调函数。
关于node.js - node.js 应用程序中的 epoll_pwait 是什么,我该怎么办?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59183930/