【问题标题】:How can I run the profiler from the command line?如何从命令行运行探查器?
【发布时间】:2018-02-11 10:55:49
【问题描述】:

我知道我可以使用 GUI 中的分析器

桌面-> 探查器

有没有办法通过命令运行?

【问题讨论】:

  • 看看profile
  • 'profview' 为您带来分析器 GUI。

标签: matlab profiler


【解决方案1】:

你可以使用命令

profile on

要停止分析,请使用:

profile off

请参阅documentation 了解更多信息。

【讨论】:

    【解决方案2】:

    符号是

    profile on
    %% your functions here
    profile off
    

    命令“profile”的许多参数都有一个连字符,只是没有打开和关闭。见matlab's documentation。也可以使用命令:

    profile('info')
    

    如果您完全在命令行上工作,而不是使用查看器,则获取包含结果的结构。

    【讨论】:

      猜你喜欢
      • 2011-01-18
      • 2010-10-29
      • 1970-01-01
      • 1970-01-01
      • 2017-08-07
      • 2013-11-09
      • 2022-10-03
      • 2011-03-19
      • 2021-12-03
      相关资源
      最近更新 更多