 |
 |
|
 |
11-14-2008, 12:30 AM
|
#1 (permalink)
|
|
Mobile Application Dev.
Join Date: Oct 2008
Location: Bangalore, india
Posts: 252
|
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.
|
|
|
11-14-2008, 12:43 AM
|
#2 (permalink)
|
|
Senior Member
iPhone Dev SDK Supporter
Join Date: Jul 2008
Location: San Mateo, CA (San Fran)
Posts: 2,577
|
Quote:
Originally Posted by mpramodjain
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
__________________
|
|
|
11-14-2008, 01:11 AM
|
#3 (permalink)
|
|
Mobile Application Dev.
Join Date: Oct 2008
Location: Bangalore, india
Posts: 252
|
Quote:
Originally Posted by smasher
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.
|
|
|
11-14-2008, 10:09 AM
|
#4 (permalink)
|
|
Senior Member
iPhone Dev SDK Supporter
Join Date: Jul 2008
Location: San Mateo, CA (San Fran)
Posts: 2,577
|
# 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
__________________
|
|
|
11-15-2008, 07:08 AM
|
#5 (permalink)
|
|
Mobile Application Dev.
Join Date: Oct 2008
Location: Bangalore, india
Posts: 252
|
Quote:
Originally Posted by smasher
# 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.
|
|
|
11-22-2008, 01:32 AM
|
#7 (permalink)
|
|
Mobile Application Dev.
Join Date: Oct 2008
Location: Bangalore, india
Posts: 252
|
#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)startConnectionTimer  NSTimer*)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.
|
|
|
 |
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
» Advertisements |
» Online Users: 556 |
| 37 members and 519 guests |
| Abdel, Alger Cheng, ankushthemaster, arcturus, ashishjraval, azraelx23, blum, chaoz1337, djp_phillips, drhansen, Duncan C, Error404, foxykirian, harrytheshark, hfmn, Hololont, ideafactory, irishkiwi, jaime1988, jasimsajid, jplus, LemonMeringue, Locker, Lokendra, marklusted, max62niers, milanjansari, mohan.agadkar, momolgtm, myPhone, rambos, SirGeraint, Son of a Beach, Tambourin, telo3, umarmara, _sean |
| Most users ever online was 779, 05-11-2009 at 09:55 AM. |
» Stats |
Members: 24,350
Threads: 39,142
Posts: 171,612
Top Poster: smasher (2,577)
|
| Welcome to our newest member, 17make |
|