Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Tools for memory tracking

Reply
Thread Tools

Tools for memory tracking

 
 
Adam Beguelin
Guest
Posts: n/a
 
      10-05-2005
------=_NextPart_000_0121_01C5C938.E938EA20
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit



Does anyone have suggestions for tools that might help tracking down memory
leaks in ruby programs? I've done a bit of searching around and haven't
found anything.



Cheers,

Adam




------=_NextPart_000_0121_01C5C938.E938EA20--


 
Reply With Quote
 
 
 
 
sweet_thiruvonam@yahoo.co.in
Guest
Posts: n/a
 
      10-05-2005
Hello,
Happy Harmony is the fastest growing matrimonial portal for
Indians.
You can email and IM other members without paying anything on this
site.
The amazing thing is that this site is totally free. Absolutely free.
Cannot believe? Then click on this link to visit and register Happy
Harmony.
http://www.happyharmony.com/?idAff=14
Background check is the new facility they have added now. You can do a
free
background check including age, address, phone numbers, property
owneship
information etc of anybody in the US.

Regards,
Resh

 
Reply With Quote
 
 
 
 
Robert Klemme
Guest
Posts: n/a
 
      10-05-2005
Adam Beguelin wrote:
> Does anyone have suggestions for tools that might help tracking down
> memory leaks in ruby programs? I've done a bit of searching around
> and haven't found anything.


I don't know about tools, too. But you can cook yourself something with
ObjectSpace. With this at least you can determine object counts and see
whether some class's counts grow beyond bounds.

Kind regards

robert

 
Reply With Quote
 
Stephen Kellett
Guest
Posts: n/a
 
      10-05-2005
In message <(E-Mail Removed)-lang.org>, Adam
Beguelin <(E-Mail Removed)> writes
>Does anyone have suggestions for tools that might help tracking down memory
>leaks in ruby programs? I've done a bit of searching around and haven't
>found anything.


If you are using Windows there is Ruby Memory Validator at
http://www.softwareverify.com

No Web page to describe it, but you can join the beta here:

http://www.softwareverify.com/beta.php?product=RMVB000

Stephen
--
Stephen Kellett
Object Media Limited http://www.objmedia.demon.co.uk/software.html
Computer Consultancy, Software Development
Windows C++, Java, Assembler, Performance Analysis, Troubleshooting
 
Reply With Quote
 
刘孟江
Guest
Posts: n/a
 
      10-05-2005

the follow code is in the mkmf.rb:

*def checking_for(m)
f = caller[0][/in `(.*)'$/, 1] and f << ": " #` for vim
m = "checking for #{m}... "
message "%s", m
a = r = nil
Logging:ostpone do
r = yield
a = r ? "yes\n" : "no\n"
"#{f}#{m}-------------------- #{a}\n"
end
message(a)
Logging::message "--------------------\n\n"
r
end

*what meaning of the '*f = caller[0][/in `(.*)'$/, 1] and f << ": " #` for vim*'?

pls!
*
*





 
Reply With Quote
 
Caleb Tennis
Guest
Posts: n/a
 
      10-05-2005
On Wednesday 05 October 2005 01:11 am, Adam Beguelin wrote:
> Does anyone have suggestions for tools that might help tracking down memory
> leaks in ruby programs? I've done a bit of searching around and haven't
> found anything.


On Linux you can use Valgrind (valgrind.kde.org).

Are you experiencing the leaks when using external libraries or just core
Ruby?

Caleb


 
Reply With Quote
 
daz
Guest
Posts: n/a
 
      10-05-2005

limux... wrote:
>
> the follow code is in the mkmf.rb:
>
> *def checking_for(m)
> f = caller[0][/in `(.*)'$/, 1] and f << ": " #` for vim
> m = "checking for #{m}... "
> message "%s", m
> a = r = nil
> Logging:ostpone do
> r = yield
> a = r ? "yes\n" : "no\n"
> "#{f}#{m}-------------------- #{a}\n"
> end
> message(a)
> Logging::message "--------------------\n\n"
> r
> end
>
> *what meaning of the '*f = caller[0][/in `(.*)'$/, 1] and f << ": " #` for vim*'?
>



def metha
methb
end

def methb
sep; p(( f = caller )) # Execution history (Array)
sep; p(( f = caller[0] )) # Take the most recent entry

# Take the first group from a string match result (else nil) # See [1]
sep; p(( f = caller[0][/in `(.*)'$/, 1] ))

# If there was a match, append ': ' to it
sep; p(( f = caller[0][/in `(.*)'$/, 1] and f << ": " ))

# The rest is a comment
end

def sep; puts('-' * 30) end

metha

##-> ------------------------------
##-> ["C:/TEMP/rbB105.TMP:2:in `metha'", "C:/TEMP/rbB105.TMP:17"]
##-> ------------------------------
##-> "C:/TEMP/rbB105.TMP:2:in `metha'"
##-> ------------------------------
##-> "metha"
##-> ------------------------------
##-> "metha: "

[1] str[regexp, fixnum]
http://www.ruby-doc.org/core/classes...g.html#M001373


daz



 
Reply With Quote
 
Austin Ziegler
Guest
Posts: n/a
 
      10-05-2005
T24gMTAvNS8wNSwgwfXDz72tIDxsaW11eEAxMjYuY29tPiB3cm 90ZToKPiAqd2hhdCBtZWFuaW5n
IG9mIHRoZSAnKmYgPSBjYWxsZXJbMF1bL2luIGAoLiopJyQvLC AxXSBhbmQgZiA8PCAiOiAiICNg
IGZvciB2aW0qJz8KClNlZSB0aGUgZG9jdW1lbnRhdGlvbiBvbi BLZXJuZWwjY2FsbGVyCgotYXVz
dGluCi0tCkF1c3RpbiBaaWVnbGVyICogaGFsb3N0YXR1ZUBnbW FpbC5jb20KICAgICAgICAgICAg
ICAgKiBBbHRlcm5hdGU6IGF1c3RpbkBoYWxvc3RhdHVlLmNhCg ==


 
Reply With Quote
 
 
 
Reply

Thread Tools

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
java tools to support agile story cards and issue tracking marlow.andrew@googlemail.com Java 1 11-07-2008 09:39 AM
IT Technical Support Call Tracking/Problem Management tools M Computer Support 0 05-31-2007 08:43 PM
Bug tracking tools for Java app Chris Java 4 11-08-2005 04:03 PM
Tracking Someone Tracking Me Edw. Peach Computer Security 4 07-07-2005 05:50 PM
Article : Security Tools Part -- 2 (.Net FrameWork Tools Series) Namratha Shah \(Nasha\) ASP .Net 0 11-23-2004 04:01 PM



Advertisments