Home News Forum Social Networking Support Us Advertise

Spanish Lesson 1 ($1.99)

aWake!Gently ($1.99)

The Bird & The Snail - Knock Knock - Deluxe ($4.99)

Match-It Trains ($0.99)

Tangled ($0.99)

iFlatter ($0.99)

The 15 puzzle ($0.99)

Tap Forms Database ($8.99)

Higher or Lower Card Game (Hi Lo) ($0.99)

Red Pixel ($0.99)

Time-Shift Radio ($0.99)

Want your application advertised here? Only $10/week!

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
Posts: 175
Rep Power: 1
mpramodjain is on a distinguished road
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: 1,064
Rep Power: 2
smasher is on a distinguished road
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
__________________
~~ DO NOT EAT THE NEWBIES ~~
Intro to objective C: http://www.cocoadevcentral.com/d/learn_objectivec/
When to retain / release: http://www.stepwise.com/Articles/Tec...-03-11.01.html

-- My iPhone apps --
Halloween Spooky Sounds, Workout Buddy exercise tracker, and Mind Warp optical illusion
smasher is offline   Reply With Quote
Old 11-14-2008, 01:11 AM   #3 (permalink)
Mobile Application Dev.
 
Join Date: Oct 2008
Location: Bangalore
Posts: 175
Rep Power: 1
mpramodjain is on a distinguished road
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: 1,064
Rep Power: 2
smasher is on a distinguished road
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
__________________
~~ DO NOT EAT THE NEWBIES ~~
Intro to objective C: http://www.cocoadevcentral.com/d/learn_objectivec/
When to retain / release: http://www.stepwise.com/Articles/Tec...-03-11.01.html

-- My iPhone apps --
Halloween Spooky Sounds, Workout Buddy exercise tracker, and Mind Warp optical illusion
smasher is offline   Reply With Quote
Old 11-15-2008, 07:08 AM   #5 (permalink)
Mobile Application Dev.
 
Join Date: Oct 2008
Location: Bangalore
Posts: 175
Rep Power: 1
mpramodjain is on a distinguished road
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)
Senior Member
 
Join Date: Apr 2008
Posts: 802
Rep Power: 2
scottiphone is on a distinguished road
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
Posts: 175
Rep Power: 1
mpramodjain is on a distinguished road
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


» Advertisements


» Stats
Members: 8,231
Threads: 20,199
Posts: 90,216
Top Poster: RickMaddy (2,121)
Welcome to our newest member, OneGlobe
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:35 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0