"profile on -history" error help: "Cannot change the history while logging is enabled."

4 ビュー (過去 30 日間)
Matthew
Matthew 2018 年 9 月 6 日
コメント済み: Matthew 2018 年 9 月 6 日
I am using "profile on -history" at the start of my program to try and understand the call sequence in the code better. I then receive the following response:
Error using callstats Cannot change the history while logging is enabled.
Error in profile (line 150) callstats('history', history);
I can't find anything on what "logging is enabled" means. Any ideas how to fix this?

回答 (1 件)

Philip Borghesani
Philip Borghesani 2018 年 9 月 6 日
編集済み: Philip Borghesani 2018 年 9 月 6 日
The error message could probably be better. Could you figure it out if the error was: "Error cannot change history while profiler is running" ? Stop the profiler then restart it with history on:
>> profile status %Just to see current profiler state
>> profile off
>> profile status
>> profile -history on % Order does not matter here but this makes more sense.
  1 件のコメント
Matthew
Matthew 2018 年 9 月 6 日
It says "Cannot change the history while logging is enabled". It doesn't say anything about "while profiler is running".

サインインしてコメントする。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by