Find slow method iOS Objective-C [closed] - ios

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I have an application that when it launches in Airplane mode it hangs. The application has a large set of code. I have added breakpoints in many areas and have been unable to determine the method or line of code that is causing the slowness. In visual studio using C# when an application is running you can hit pause and the debugger will be at the location of code currently executing during that moment. When hitting pause in xcode, the debugger stops in assembly code. What can you guys recommend to find the line of code or method that is causing slowness in my app?

Instruments is the the right tool for the job. Exploring the call tree will tell you where your program is spending most of the time. It's quite intuitive even if you don't have much experience with it.
Also, as other have suggested you can check out this tutorial.

Use NSLog strategically and note the last console output shown.
Doesn't matter how large your codebase is if you narrow it down like a binary search you'll have at most log(n) (no pun intended) number of debugging statements.

Related

Layout containers in objective-c - do they exist? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
It begins my third month with XCode, iOS, objective-c and mac as well, I can tell that so far I'm disappointed to be as kind as I can be with my opinion. Maybe because I was spoiled by things that I had in hand when developing for other platforms like Android?
In any programming tasks where visuals are presented layout functionality is a MUST from the beginning, and like I could get functionality for layout in FLEX, JAVA or JAVA for Android (also have seen it working for Metro, XNA for Windows phones) but in iOS everything seems to be up-hill.
After this long introduction my question is quite simple, did someone tried to overcome this issue, namely are there any layout container components that can be brought to the Xcode project and use it e.g. linear layout?
People have written some Layout managers - you will find some here - https://www.cocoacontrols.com/search?q=layout but I agree with the commenters above, properly setting up layout constraints, although a little more time consuming at first, gives quite predictable and stable layout and you get quicker once you get familiar with them.

What tools can help Xcode to build and run less often when you are writing UI code for app [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I am suck by the issue that when I am writing code for my app's UI, I often need to adjust some frame parameter, but after that , I need to build and run Xcode again, I can not see the effect real-time.
After some google search, I find this project: RestartLessOften,but it seems to do a lot more to get it work! Anyone find an easy one that I can see my UI effect at real-time?
There is an alternative to RestartLessOften, that is Injection for Xcode Source. I dont know, if its better than RestartLessOften, but it might help other users as an alternative to RestartLessOften.
Reveal allows you to inspect and modify many aspects of your UI at runtime, beyond simply the frame. It costs money, but it works.
Note that this question is off-topic for SO, as "tool recommendation" questions don't have a "right" answer.

Is the xxm step by step install tutorial clear enough? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I know the xxm install guide is a lot to read and doesn't get you up and running as fast and easily as it would when you've seen it done.
So I've installed xxm on a clean Windows install, and made screenshots at every step. I haven't made much tutorials before, and wouldn't even know where to start to make one of those walk-through video's with a voice-over...
Is it clear enough? How could I improve it? (First thing that comes up to mind is I should have set the screen to 800x600)
Should I extend this tutorial with how to include fragments on pages or how to debug a project, or should I make new tutorials about those?
For a programmer or an I.T. person (who is already technically-inclined) that understands the shortcuts and shorthand notations (virt-dir, for example), it's quite good. Although, looking at the website, it should cover running as a standalone HTTP server, as this is claimed to be supported.

"Unlocker" equivalent for Vista64? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Cedrick Collomb's Unlocker is one of the most useful utilities I've ever come across - when I come across an issue in compiling that some file is locked I can just right click on the file, click "Unlocker", and it will tell me what has the file (similar to Who Lock Me?) and I can remove the handles, kill the process, whatever. It's really nice.
However it doesn't work in Vista64. I'm not sure if it works in Vista32 but I'm currently running Vista64 at home and soon will be using it at work, too.
Does anyone know of a comparable utility that works in Vista64?
I know that Windows 7 will have this functionality built directly into it. In the mean time, check out Process Explorer. It can identify the process that has the file hook as wel as remove the hook(s). Its got tonnes of other uses, but I've primarily used it for that.
Found one - LockHunter
Unlocker 64 bit has been available for a while...

ActiveX on Visual C++ 6 Tutorial [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I have to build an application based in an ActiveX library (MIL for Matrox framegrabbers).
The library should be already working, since it compiles and run a console application provided as example. (Yes, the console application is probably not using any ActiveX at all... I actually don't know)
The application will set times, frames per second, etc.
I never used Visual C++ before (I have some poor C programming skills), let alone an ActiveX library. I'm not even able to get an "Ok Cancel" dialog to work...
I need the most basic ever vc6 + ActiveX tutorial.
Thanks in advance.
Here is an example - how to create a control (you already have one) and how to interact with it.
By the way, using VC++ isn't the best choice IMO. Programming of COM clients are much simpler in VB...

Resources