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:
jit acceleration doesn't show up in profiler

Subject: jit acceleration doesn't show up in profiler

From: Juliette Salexa

Date: 16 Jun, 2010 17:21:04

Message: 1 of 10

Hello,

In this tutorial:
http://www.mathworks.com/company/newsletters/news_notes/may03/images/profiler2_large.jpg

It shows 4 columns titled "time" "calls" "accel" and "line"

I'm wondering why my profiler doens't show the 'accel' column ?

I have Matlab 2010a and all the toolboxes.

It's hard for me to find out what I'm missing because when I google "matlab JIT" ,
almost every page is external to mathworks, and the top 2 results are from 2003 and before.

Does anyone know how I can get that column to display ?

Thanks.

Subject: jit acceleration doesn't show up in profiler

From: Steven Lord

Date: 17 Jun, 2010 15:05:03

Message: 2 of 10


"Juliette Salexa" <juliette.physicist@gmail.com> wrote in message
news:hvb160$368$1@fred.mathworks.com...
> Hello,
>
> In this tutorial:
> http://www.mathworks.com/company/newsletters/news_notes/may03/images/profiler2_large.jpg
>
> It shows 4 columns titled "time" "calls" "accel" and "line"
>
> I'm wondering why my profiler doens't show the 'accel' column ?

Because that column was specifically removed from the Profiler view a few
years ago. The Profiler was intended to answer the question "How long does
my code take to run" -- ideally you shouldn't _care_ whether or not a
particular line or section of your code was accelerated.

--
Steve Lord
slord@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Subject: jit acceleration doesn't show up in profiler

From: Juliette Salexa

Date: 18 Jun, 2010 14:36:02

Message: 3 of 10

Thanks Steven,

I got that image from:

http://www.mathworks.com/company/newsletters/news_notes/may03/profiler.html

where it says:

"A dot (.) in the acc column means the line accelerated; an x means that it did not. Clicking on the x shows why that line did not accelerate. For example:
Reference to 'i' in a script cannot be accelerated unless 'i' is a defined variable. To apply the builtin 'i', use the notation '1i'."

That piece of advice as to why that line can't be accelerated seems to be quite useful, especially since that message doesn't show up in the MLint warnings.

Is there a way to see messages like this so that we can maximize the amount of acceleration that the JIT compiler can do ?

Subject: jit acceleration doesn't show up in profiler

From: Steven Lord

Date: 18 Jun, 2010 14:57:26

Message: 4 of 10


"Juliette Salexa" <juliette.physicist@gmail.com> wrote in message
news:hvg08i$250$1@fred.mathworks.com...
> Thanks Steven,
>
> I got that image from:
>
> http://www.mathworks.com/company/newsletters/news_notes/may03/profiler.html

Yes -- note that the URL indicates that article is from May 2003, over seven
years ago. Things have changed a bit since then.

> where it says:
>
> "A dot (.) in the acc column means the line accelerated; an x means that
> it did not. Clicking on the x shows why that line did not accelerate. For
> example:
> Reference to 'i' in a script cannot be accelerated unless 'i' is a defined
> variable. To apply the builtin 'i', use the notation '1i'."
>
> That piece of advice as to why that line can't be accelerated seems to be
> quite useful, especially since that message doesn't show up in the MLint
> warnings.
>
> Is there a way to see messages like this so that we can maximize the
> amount of acceleration that the JIT compiler can do ?

NO. I agree with Sarah Zaranek's comment (comment 13) in this posting on
Loren's blog:

http://blogs.mathworks.com/loren/2008/06/25/speeding-up-matlab-applications/


"We recommend not writing specifically for the JIT since the JIT is
constantly evolving. You should though keep in mind the general good
MATLAB-coding practices, such as those listed above."


If you find a piece of code that you think is not performing as well as it
should be, and you can't figure out how to make it faster, contact Technical
Support and/or post it to the newsgroup. They can help you make it faster,
find an alternative approach, or (if you contact Support) enter an
enhancement request into the enhancement database to investigate how to make
it faster.

--
Steve Lord
slord@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Subject: jit acceleration doesn't show up in profiler

From: dpb

Date: 18 Jun, 2010 15:01:15

Message: 5 of 10

Steven Lord wrote:
...

> NO. I agree with Sarah Zaranek's comment ...
> "We recommend not writing specifically for the JIT since the JIT is
> constantly evolving. You should though keep in mind the general good
> MATLAB-coding practices, such as those listed above."
>
...

OTOH, isn't it highly likely that if something is discernible as being
bad for JIT now, it's unlikely that practice will become good in the
future???

I can't imagine the kinds of recommendations made at that level are
being changed _that_ rapidly (or conflict that much in advice)...

Additions I can see, certainly.

$0.02, etc., ...

--

Subject: jit acceleration doesn't show up in profiler

From: us

Date: 18 Jun, 2010 15:22:04

Message: 6 of 10

"Juliette Salexa" <juliette.physicist@gmail.com> wrote in message <hvb160$368$1@fred.mathworks.com>...
> Hello,
>
> In this tutorial:
> http://www.mathworks.com/company/newsletters/news_notes/may03/images/profiler2_large.jpg
>
> It shows 4 columns titled "time" "calls" "accel" and "line"
>
> I'm wondering why my profiler doens't show the 'accel' column ?
>
> I have Matlab 2010a and all the toolboxes.
>
> It's hard for me to find out what I'm missing because when I google "matlab JIT" ,
> almost every page is external to mathworks, and the top 2 results are from 2003 and before.
>
> Does anyone know how I can get that column to display ?
>
> Thanks.

a hint:
- edit your STARTUP.M and add this line

     setpref('profiler','showJitLines',1);

us

Subject: jit acceleration doesn't show up in profiler

From: Cody

Date: 30 Sep, 2010 18:43:24

Message: 7 of 10

"Juliette Salexa" <juliette.physicist@gmail.com> wrote in message <hvg08i$250$1@fred.mathworks.com>...
> Thanks Steven,
>
> I got that image from:
>
> http://www.mathworks.com/company/newsletters/news_notes/may03/profiler.html
>
> where it says:
>
> "A dot (.) in the acc column means the line accelerated; an x means that it did not. Clicking on the x shows why that line did not accelerate. For example:
> Reference to 'i' in a script cannot be accelerated unless 'i' is a defined variable. To apply the builtin 'i', use the notation '1i'."
>
> That piece of advice as to why that line can't be accelerated seems to be quite useful, especially since that message doesn't show up in the MLint warnings.
>
> Is there a way to see messages like this so that we can maximize the amount of acceleration that the JIT compiler can do ?

Hi Juliette, I've enabled the JIT column in the profile using the SETPREF command, however on OSX 10.6.4 running R2010b the profiler column title is actually 'unjitted' and the X (indicating an unaccelerated like) isn't an active link and it won't let me click to see why the line was unaccelerated. Thanks for your insights, -Cody

Subject: jit acceleration doesn't show up in profiler

From: Steven_Lord

Date: 30 Sep, 2010 21:09:26

Message: 8 of 10



"Cody " <mntgoatman@gmail.com> wrote in message
news:i82lob$rh$1@fred.mathworks.com...
> "Juliette Salexa" <juliette.physicist@gmail.com> wrote in message
> <hvg08i$250$1@fred.mathworks.com>...
>> Thanks Steven,
>>
>> I got that image from:
>>
>> http://www.mathworks.com/company/newsletters/news_notes/may03/profiler.html
>>
>> where it says:
>>
>> "A dot (.) in the acc column means the line accelerated; an x means that
>> it did not. Clicking on the x shows why that line did not accelerate. For
>> example:
>> Reference to 'i' in a script cannot be accelerated unless 'i' is a
>> defined variable. To apply the builtin 'i', use the notation '1i'."
>>
>> That piece of advice as to why that line can't be accelerated seems to be
>> quite useful, especially since that message doesn't show up in the MLint
>> warnings.
>>
>> Is there a way to see messages like this so that we can maximize the
>> amount of acceleration that the JIT compiler can do ?
>
> Hi Juliette, I've enabled the JIT column in the profile using the SETPREF
> command, however on OSX 10.6.4 running R2010b the profiler column title is
> actually 'unjitted' and the X (indicating an unaccelerated like) isn't an
> active link and it won't let me click to see why the line was
> unaccelerated. Thanks for your insights, -Cody

That is the CORRECT behavior. Reread what I wrote in post 4 in this thread,
which I've copied below.

"
NO. I agree with Sarah Zaranek's comment (comment 13) in this posting on
Loren's blog:

http://blogs.mathworks.com/loren/2008/06/25/speeding-up-matlab-applications/


"We recommend not writing specifically for the JIT since the JIT is
constantly evolving. You should though keep in mind the general good
MATLAB-coding practices, such as those listed above."


If you find a piece of code that you think is not performing as well as it
should be, and you can't figure out how to make it faster, contact Technical
Support and/or post it to the newsgroup. They can help you make it faster,
find an alternative approach, or (if you contact Support) enter an
enhancement request into the enhancement database to investigate how to make
it faster.
"

--
Steve Lord
slord@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Subject: jit acceleration doesn't show up in profiler

From: Cody

Date: 30 Sep, 2010 23:08:04

Message: 9 of 10

Hi everyone, There may be some confusion over my problem. It seems in other version of the profiler an "X" appears in the "accel" column that is hyper-linked to info on why the line didn't accelerate. The "X" does appear in my profiler, however, it is NOT hyper-linked so I don't have any info on why the line did not accelerate. Also, when I issue setpref('profiler','showJitLines',1) command, the column name subsequently appears is "unjitted" NOT "accel". How can I get more info on why the line did not accelerate?

Subject: jit acceleration doesn't show up in profiler

From: Cris Luengo

Date: 1 Oct, 2010 09:39:05

Message: 10 of 10

"Cody " <mntgoatman@gmail.com> wrote in message <i8358k$hbj$1@fred.mathworks.com>...
> Hi everyone, There may be some confusion over my problem. It seems in other version of the profiler an "X" appears in the "accel" column that is hyper-linked to info on why the line didn't accelerate. The "X" does appear in my profiler, however, it is NOT hyper-linked so I don't have any info on why the line did not accelerate. Also, when I issue setpref('profiler','showJitLines',1) command, the column name subsequently appears is "unjitted" NOT "accel". How can I get more info on why the line did not accelerate?

As explained before, this information is not given anymore. Feel free to post your code and ask the community about how to improve it.

Cheers,
Cris.

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