C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesC Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 17th, 2003, 01:03 PM
dmittner dmittner is offline
Dazed&Confused
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Location: Tempe, AZ
Posts: 91 dmittner User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 34 m 13 sec
Reputation Power: 7
Send a message via ICQ to dmittner Send a message via AIM to dmittner
C, Linux, memory usage tracking help needed

As I indicated in previous posts, I'm creating a program that continuously runs in a loop. And because each loop can have different memory requirements, it's important that all the allocated memory is freed for the next loop cycle.

Now I've integrated memwatch into my code, which monitors allocations done with malloc and calloc, and records if they go unfreed once the program ends. According to that I have no memory leaks, however watching the memory utilization in 'top' indicates it's demanding a new 176k every cycle (at a point in development that all cycles _should_ only demand the same).

I've heard that 'top' isn't the best tool to use for such monitoring so my question is, is there a tool that more effectively monitors memory in real-time, or should I just ignore what top says and trust memwatch?

Thanks in advance

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesC Programming > C, Linux, memory usage tracking help needed


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway