www.ruby-forum.com/topic/156648

Preview meta tags from the www.ruby-forum.com website.

Linked Hostnames

8

Thumbnail

Search Engine Appearance

Google

https://www.ruby-forum.com/topic/156648

Can I find out the memory used by an object?

I’m 99% sure the answer to that question is no, but I thought I’d ask anyway :slight_smile: Practically speaking it’s only of use to me if it can be done on MRI (Ruby 1.8). Trivially I can do something like (apologie…



Bing

Can I find out the memory used by an object?

https://www.ruby-forum.com/topic/156648

I’m 99% sure the answer to that question is no, but I thought I’d ask anyway :slight_smile: Practically speaking it’s only of use to me if it can be done on MRI (Ruby 1.8). Trivially I can do something like (apologie…



DuckDuckGo

https://www.ruby-forum.com/topic/156648

Can I find out the memory used by an object?

I’m 99% sure the answer to that question is no, but I thought I’d ask anyway :slight_smile: Practically speaking it’s only of use to me if it can be done on MRI (Ruby 1.8). Trivially I can do something like (apologie…

  • General Meta Tags

    9
    • title
      Can I find out the memory used by an object? - Ruby - Ruby-Forum
    • charset
      utf-8
    • description
      I’m 99% sure the answer to that question is no, but I thought I’d ask anyway :slight_smile: Practically speaking it’s only of use to me if it can be done on MRI (Ruby 1.8). Trivially I can do something like (apologie…
    • generator
      Discourse 3.1.0.beta5 - https://github.com/discourse/discourse version e0f848c2eabed2ced3af863418a37d20f3cc4c2e
    • theme-color
      #ffffff
  • Open Graph Meta Tags

    9
    • og:site_name
      Ruby-Forum
    • og:type
      website
    • og:image
      https://www.ruby-forum.com/uploads/default/original/1X/8a5e8e853d54c2948e021a2e1c15b7bc1b378978.png
    • og:url
      https://www.ruby-forum.com/t/can-i-find-out-the-memory-used-by-an-object/140673
    • og:title
      Can I find out the memory used by an object?
  • Twitter Meta Tags

    5
    • twitter:card
      summary
    • twitter:image
      https://www.ruby-forum.com/uploads/default/original/1X/8a5e8e853d54c2948e021a2e1c15b7bc1b378978.png
    • twitter:url
      https://www.ruby-forum.com/t/can-i-find-out-the-memory-used-by-an-object/140673
    • twitter:title
      Can I find out the memory used by an object?
    • twitter:description
      I’m 99% sure the answer to that question is no, but I thought I’d ask anyway 🙂 Practically speaking it’s only of use to me if it can be done on MRI (Ruby 1.8). Trivially I can do something like (apologies for the hackiness, and not using the sysutil gem): def memory_used File.read("/proc/#$$/status").match(/^VmSize:\s*(\d*)/)[1].to_i end mem_used = memory_used() mem_used_since = memory_used - mem_used # Returns difference in KB since mem_used was set But that only tells ...
  • Item Prop Meta Tags

    81
    • position
      1
    • headline
      Can I find out the memory used by an object?
    • articleSection
      Ruby
    • keywords
    • name
      Ruby Forum
  • Link Tags

    42
    • alternate nofollow
      https://www.ruby-forum.com/t/can-i-find-out-the-memory-used-by-an-object/140673.rss
    • apple-touch-icon
      https://www.ruby-forum.com/uploads/default/optimized/1X/645cc2efa553889ca9678040f222dc6640fae21e_2_180x180.png
    • canonical
      https://www.ruby-forum.com/t/can-i-find-out-the-memory-used-by-an-object/140673
    • icon
      https://www.ruby-forum.com/uploads/default/optimized/1X/8a5e8e853d54c2948e021a2e1c15b7bc1b378978_2_32x32.png
    • preload
      /theme-javascripts/6b236ec71a4d5406c58f8026df9a7030179f693b.js?__ws=www.ruby-forum.com

Links

25