Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
oddboy
Posts: 136
Registered: ‎05-24-2011
My Device: Z30 running 10.2 and Playbook 4GLTE running OS2.1
My Carrier: rogers

profiling tips?

Hey gang,

I'm struggling a bit with profiling my app. Fully admit I'm still a newb when it comes to c++ and profiling in general.

I think the main problem I'm having is that my code is not being compiled with instrumentation. When I launch a profiling session, I can see my app, but it looks like all the time is spent on main(). I can't get a view of my own code.

The docs seems a bit sparse on how to get this all going, so wondering if anyone can provide a bit of detail on how to compile code with instrumentation and generally profile a c++ blackberry app..?

Any tips or pointers would be greatly appreciated. I've we been wrestling with this for a few days and it's getting frustrating.

Thx,

J


bron: a cron-like scheduler for BlackBerry 10
http://apps.oddelement.com
Please use plain text.
Developer
BBSJdev
Posts: 6,090
Registered: ‎07-05-2012
My Device: Playbook, Z10 LE, Dev Alpha C
My Carrier: Orange

Re: profiling tips?

How far have you got so far?

 

Have you built it using the profile build, i.e. the third option under debug and run builds?

 


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Please use plain text.
Developer
BBSJdev
Posts: 6,090
Registered: ‎07-05-2012
My Device: Playbook, Z10 LE, Dev Alpha C
My Carrier: Orange

Re: profiling tips?

I assume you've read this...

 

http://supportforums.blackberry.com/t5/forums/replypage/board-id/Cascades/message-id/56442

 

but this may also be helpful...

 

http://www.eclipse.org/tptp/home/documents/tutorials/profilingtool/profilingexample_32.html

 

Yes it's Java but the concepts are the same.


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Please use plain text.
Developer
oddboy
Posts: 136
Registered: ‎05-24-2011
My Device: Z30 running 10.2 and Playbook 4GLTE running OS2.1
My Carrier: rogers

Re: profiling tips?

I have read those, and a lot of other sources too.

I think I have the profile build working. I'm able to see stats incrementing on the execution timeline view, but 100% of the time is spent in main()

When I go to do a profile build, I get a message like:

The recommended configuration for using Cascades Profiler is 'Run' launch with the 'Debug' build configuration

Only in this case will Cascades Profiler work without requiring additional code added to the project sources.

Continue with Cascades profiling enabled only if you are sure what you are doing.

Continue?

---

Whether I press yes or no, I can't seem to get profiling info for my own code.

bron: a cron-like scheduler for BlackBerry 10
http://apps.oddelement.com
Please use plain text.
Developer
oddboy
Posts: 136
Registered: ‎05-24-2011
My Device: Z30 running 10.2 and Playbook 4GLTE running OS2.1
My Carrier: rogers

Re: profiling tips?

here's a screen shot.. it says main(self) is consuming almost all the time, but doesn't give me much insight.

 

profiler.png

 

 

and i get this when i try to delve into (what i think is) custom code.

 

profiler2.png

 

I'm still reading, poking around and trying to figure this out...

 

thanks,


J

bron: a cron-like scheduler for BlackBerry 10
http://apps.oddelement.com
Please use plain text.
Developer
greenmr
Posts: 875
Registered: ‎03-20-2013
My Device: Red LE Developer Z10
My Carrier: Fido

Re: profiling tips?

Just so you know, we cannot see your images yet since they are moderated and take up to 24 hours to become public.



Developer of Built for BlackBerry certified multiFEED RSS/Atom feed reader and aggregator.
Please use plain text.