Using WebStorm 2016.1 with Meteor.
将WebStorm 2016.1与Meteor一起使用。
Want to be able to “profile” performance of Javascript for Meteor on server.
希望能够在服务器上“分析”Javascript for Meteor的性能。
WebStorm has spy-js which is just what I need ... however have not been able to get it to work with Meteor. Cannot run 2 instances (Meteor and spy-js) at same time from one instance of WebStorm. Running each on separate WS instances does not work either. Start Meteor from terminal ... then Run spy-js from WS ... and then load Meteor prj from within WS (File::OpenURL → localhost:3000) ... has not worked either.
WebStorm有spy-js,这正是我需要的......但是却无法让它与Meteor一起工作。无法从一个WebStorm实例同时运行2个实例(Meteor和spy-js)。在单独的WS实例上运行每个实例也不起作用。从终端启动Meteor ...然后从WS运行spy-js ...然后从WS(File :: OpenURL→localhost:3000)中加载Meteor prj ......也没有工作。
Have looked at Kadira, Chrome DevTools, NodeJS profiling, JS profiling ... but have not seen example of how they could work with server-side JS on Meteor.
看过Kadira,Chrome DevTools,NodeJS分析,JS分析......但还没有看到他们如何在Meteor上使用服务器端JS的例子。
I see Kadira has course (BulletProof Meteor) on Nodejs Internals (https://bulletproofmeteor.com/packages) ... but course has been postponed (https://meteorhacks.com/postponing-nodejs-internals-lessons-on-bulletproof-meteor.html).
我看到Kadira在Nodejs Internals(https://bulletproofmeteor.com/packages)上有课程(BulletProof Meteor)...但课程已被推迟(https://meteorhacks.com/postponing-nodejs-internals-lessons-on-防弹meteor.html)。
Best 2 solutions I have found:
我发现最好的2个解决方案:
-
Make CALL from client to server ... and profile function that does CALL on client side in order to get idea of server performance.
从客户端到服务器进行CALL ...以及在客户端进行CALL的配置文件功能,以便了解服务器性能。
-
Use console.time() and console.timeEnd() functions on server JS code.
在服务器JS代码上使用console.time()和console.timeEnd()函数。
I think I am missing something obvious ... any suggestions?
我想我错过了一些明显的东西......有什么建议吗?
1 个解决方案
#1
2
SUMMARY of what I found ...
我发现的概要......
Kadira solution → https://kadira.io/platform/kadira-debug/cpu-profiling/taking-a-server-profile
Kadira解决方案→https://kadira.io/platform/kadira-debug/cpu-profiling/taking-a-server-profile
NodeJS solution → https://nodejs.org/api/process.html#process_process_hrtime_time
NodeJS解决方案→https://nodejs.org/api/process.html#process_process_hrtime_time
WebStorm duplicate issue posted in 03Nov2014 → see WEB-14065
WebStorm复制问题发布于03Nov2014→请参阅WEB-14065
#1
2
SUMMARY of what I found ...
我发现的概要......
Kadira solution → https://kadira.io/platform/kadira-debug/cpu-profiling/taking-a-server-profile
Kadira解决方案→https://kadira.io/platform/kadira-debug/cpu-profiling/taking-a-server-profile
NodeJS solution → https://nodejs.org/api/process.html#process_process_hrtime_time
NodeJS解决方案→https://nodejs.org/api/process.html#process_process_hrtime_time
WebStorm duplicate issue posted in 03Nov2014 → see WEB-14065
WebStorm复制问题发布于03Nov2014→请参阅WEB-14065