简体   繁体   English

根据top,我的node.js应用程序正在使用100%的CPU

[英]According to top, my node.js application is using 100% of my CPU

The application is actually open-source: http://www.github.com/zackster/CompassionPit-Node-- 该应用程序实际上是开源的: http : //www.github.com/zackster/CompassionPit-Node--

What are the high-level steps to profiling my application to see where it's soaking up CPU resources? 对应用程序进行性能分析以了解其在哪里占用CPU资源的高级步骤有哪些?

You can use node-inspector to profile your code. 您可以使用node-inspector来分析您的代码。 That will show where it's spending most of its time. 这将显示其大部分时间都花在哪里。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM