Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

iVidCam Free
(free)

Kid Art
($0.99)

iPUBQUIZ
(£1.19)

ArtStudio
($3.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 11-14-2008, 12:30 AM   #1 (permalink)
Mobile Application Dev.
 
Join Date: Oct 2008
Location: Bangalore, india
Posts: 252
Default Object Allocation Instrument #Net/#Overall

Hi , do any one the main difference between the Net, Overall, #Net and #Overall columns in the Object Allocation instrument table. If So Please reply or send any link referenced to this. tTHank Yyou.
mpramodjain is offline   Reply With Quote
Old 11-14-2008, 12:43 AM   #2 (permalink)
Senior Member
iPhone Dev SDK Supporter
 
smasher's Avatar
 
Join Date: Jul 2008
Location: San Mateo, CA (San Fran)
Posts: 2,577
Default

Quote:
Originally Posted by mpramodjain View Post
Hi , do any one the main difference between the Net, Overall, #Net and #Overall columns in the Object Allocation instrument table. If So Please reply or send any link referenced to this. tTHank Yyou.
I believe that "Net" means objects that are still allocated right now - and "Overall" is the total number over the life of the application so far.

So if you create 10 strings, and then 5 are deallocated, your numbers will show as
Net: 5 Overall: 10
__________________
smasher is offline   Reply With Quote
Old 11-14-2008, 01:11 AM   #3 (permalink)
Mobile Application Dev.
 
Join Date: Oct 2008
Location: Bangalore, india
Posts: 252
Default

Quote:
Originally Posted by smasher View Post
I believe that "Net" means objects that are still allocated right now - and "Overall" is the total number over the life of the application so far.

So if you create 10 strings, and then 5 are deallocated, your numbers will show as
Net: 5 Overall: 10

Any Idea on #Net/#Overall in OBject Allocation Instrument.
mpramodjain is offline   Reply With Quote
Old 11-14-2008, 10:09 AM   #4 (permalink)
Senior Member
iPhone Dev SDK Supporter
 
smasher's Avatar
 
Join Date: Jul 2008
Location: San Mateo, CA (San Fran)
Posts: 2,577
Default

# Net and # Overall are the number of objects of that type;
Net Bytes and Overall Bytes are the amount of memory used by all of those objects.

To finish off the example -
If you create 10 strings, and then 5 are deallocated, your numbers will show as
# Net: 5
# Overall: 10

If Each string takes up 100 bytes of memory, you'll also see
Net Bytes: 500
Overall Bytes: 1000
__________________
smasher is offline   Reply With Quote
Old 11-15-2008, 07:08 AM   #5 (permalink)
Mobile Application Dev.
 
Join Date: Oct 2008
Location: Bangalore, india
Posts: 252
Default

Quote:
Originally Posted by smasher View Post
# Net and # Overall are the number of objects of that type;
Net Bytes and Overall Bytes are the amount of memory used by all of those objects.

To finish off the example -
If you create 10 strings, and then 5 are deallocated, your numbers will show as
# Net: 5
# Overall: 10

If Each string takes up 100 bytes of memory, you'll also see
Net Bytes: 500
Overall Bytes: 1000
Hi Smasher,

Thanks for the fruitful info. Can u help in giving me any link or article on web to get through these issues(Instruments ) clearly.Thank u again.
mpramodjain is offline   Reply With Quote
Old 11-15-2008, 12:10 PM   #6 (permalink)
New Member
 
Join Date: Apr 2008
Posts: 802
Default

You can search for any Apple tools and examples at the Apple developer site.

Instruments User Guide: Introduction to Instruments User Guide


You can use the web or download a pdf.
scottiphone is offline   Reply With Quote
Old 11-22-2008, 01:32 AM   #7 (permalink)
Mobile Application Dev.
 
Join Date: Oct 2008
Location: Bangalore, india
Posts: 252
Smile #Net/Overall Allocation.

Hi,

I am using Http Connection for every 3 seconds, by invoking timer. I am getting the httpconnection well. But after running for around 5 minutes , my application getting crashed, without showing any memory leaks. In my application I just use a timer , NSURL and NSDATA. I didnt made any alloc to release. But my applicaiton getting crash.


Following is the timer class for http connection.

-(id)startConnectionTimerNSTimer*)timer{
NSURL *imageUrl=[NSURL URLWithString:@"http://www.osei.noaa.gov/IOD/OSEIiod.jpg"];
NSData *imageData=[NSData dataWithContentsOfURL:imageUrl];
return self;


}

Following are the some of observation I made of my Knowledge..
1) In Leak Instrument, the #Net/Overall allocation histogram is turning towards RED. As per the instrument user guide , I found this need to do some investigation. But I dont how can I make this clear. I am calling timer in which no allocations were done to release.


Do anyone had the solution or support Please help.
mpramodjain is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Stats
Members: 24,350
Threads: 39,142
Posts: 171,612
Top Poster: smasher (2,577)
Welcome to our newest member, 17make
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 05:27 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0