Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Profiler time mismatch?

Subject: Profiler time mismatch?

From: Roberto Olmi

Date: 16 Nov, 2010 11:48:06

Message: 1 of 2

When I run profiler I've got this report. The first column is the time

 Time Calls Line
  0.02 2810 75 segj=seg(css_segi(h,1));
  0.02 2810 76 segj=seg(ceil(rand*length(seg)));
  0.03 2810 77 boh=0;
  1.13 2810 78 segj=segj;
  0.03 2810 79 for b = 1:size(segj.BTable,1) %per ogni prenotaz su segj

Why the last operation on variable segj (line 78) takes so much time with respect all other (lines 75 and 76)?
Thanks.

Roberto Olmi

Subject: Profiler time mismatch?

From: Aurelien Queffurust

Date: 16 Nov, 2010 12:13:05

Message: 2 of 2

"Roberto Olmi" <dont-write-this-roberto.olmi@unimore.it> wrote in message <ibtr1m$mse$1@fred.mathworks.com>...
> When I run profiler I've got this report. The first column is the time
>
> Time Calls Line
> 0.02 2810 75 segj=seg(css_segi(h,1));
> 0.02 2810 76 segj=seg(ceil(rand*length(seg)));
> 0.03 2810 77 boh=0;
> 1.13 2810 78 segj=segj;
> 0.03 2810 79 for b = 1:size(segj.BTable,1) %per ogni prenotaz su segj
>
> Why the last operation on variable segj (line 78) takes so much time with respect all other (lines 75 and 76)?
> Thanks.
>
> Roberto Olmi

Do you have the same results when using :
profile on -timer real

Aurélien
http://blog.developpez.com/matlab4geek/

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us