Mercurial > octave
diff scripts/general/profshow.m @ 21634:96518f623c91
Backed out changeset dcf8922b724b
author | Mike Miller <mtmiller@octave.org> |
---|---|
date | Wed, 20 Apr 2016 11:06:03 -0700 |
parents | dcf8922b724b |
children |
line wrap: on
line diff
--- a/scripts/general/profshow.m Wed Apr 20 17:53:10 2016 +0200 +++ b/scripts/general/profshow.m Wed Apr 20 11:06:03 2016 -0700 @@ -76,9 +76,9 @@ headerFormat = sprintf ("%%4s %%%ds %%4s %%12s %%10s %%12s\n", nameLen); rowFormat = sprintf ("%%4d %%%ds %%4s %%12.3f %%10.2f %%12d\n", nameLen); - fprintf (headerFormat, ... + printf (headerFormat, ... "#", "Function", "Attr", "Time (s)", "Time (%)", "Calls"); - fprintf ("%s\n", repmat ("-", 1, nameLen + 2 * 5 + 11 + 2 * 13)); + printf ("%s\n", repmat ("-", 1, nameLen + 2 * 5 + 11 + 2 * 13)); for i = 1 : n row = data.FunctionTable(p(i)); @@ -87,7 +87,7 @@ if (row.IsRecursive) attr = "R"; endif - fprintf (rowFormat, p(i), row.FunctionName, attr, + printf (rowFormat, p(i), row.FunctionName, attr, row.TotalTime, timePercent, row.NumCalls); endfor