简体   繁体   English

查看每个调用旁边的 javascript 代码的执行时间

[英]see execution time of javascript code next to each call

Is it possible to see execution time like the image bellow, but in Node without the gibberish in vscode javascript debugger or without using the console.time('debug') and console.timeEnd('debug') functions?是否可以看到如下图所示的执行时间,但在Node中没有 vscode javascript 调试器中的乱码或不使用console.time('debug')console.timeEnd('debug')函数?

源码测试功能性能

Edit 1: Something like this is gibberish to me, too hard to read.编辑1:这样的东西对我来说是胡言乱语,太难读了。 I take the chart as an exemple here but top down or bottom up views are the same to me.我在这里以图表为例,但自上而下自下而上的视图对我来说是相同的。 在此处输入图像描述

You can use both of this tools:您可以使用这两种工具:

  • Execution profiler for nodejs: sample nodejs 的执行分析器:示例
  • ExecTimer, nodejs package: via npm ExecTimer,nodejs package:通过 npm

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

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