 |
 |
|
 |
11-14-2008, 12:30 AM
|
#1 (permalink)
|
|
Mobile Application Dev.
Join Date: Oct 2008
Location: Bangalore
Posts: 175
Rep Power: 1
|
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: 1,064
Rep Power: 2
|
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
Posts: 175
Rep Power: 1
|
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: 1,064
Rep Power: 2
|
# 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
Posts: 175
Rep Power: 1
|
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
Posts: 175
Rep Power: 1
|
#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: 237 |
| 29 members and 208 guests |
| 2ndSegment, bondjpf, crossfire, dapis, davidlansalot, ElysianEagle, enfamus, exosyphen, freshking, g.castaldi, gbh, Groucho, hugo, joshsroka, Jume, kaleman, Lars, lastiko, lildragon, martinws, mattjgalloway, MetaImi, mnemonic_fx, nattylux, OneGlobe, Opticfibre, shabzcohelp, Sicga, williamlegate |
| Most users ever online was 779, 05-11-2009 at 09:55 AM. |
» Stats |
Members: 8,231
Threads: 20,199
Posts: 90,216
Top Poster: RickMaddy (2,121)
|
| Welcome to our newest member, OneGlobe |
|