24 Sep '13, 2am

@daneharrigan

require 'rubygems' require 'ffi-rzmq' if ARGV.length < 3 puts "usage: ruby leak.rb <connect-to> <message-size> <roundtrip-count>" exit end link = ARGV[0] message_size = ARGV[1].to_i roundtrip_count = ARGV[2].to_i ctx = ZMQ::Context.new request_socket = ctx.socket ZMQ::REQ reply_socket = ctx.socket ZMQ::REP request_socket.connect link reply_socket.bind link poller = ZMQ::Poller.new poller.register_readable request_socket poller.register_readable reply_socket start_time = Time.now message = ZMQ::Message.new("a" * message_size) request_socket.send message, ZMQ::NOBLOCK i = roundtrip_count messages = [] until i.zero? i -= 1 poller.poll_nonblock poller.readables.each do |socket| message = ZMQ::Message.new socket.recv message, ZMQ::NOBLOCK messages << message socket.send ZMQ::Message.new(message.copy_out_string), ZMQ::NOBLOCK end end elapsed_usecs = (Time.now.to_f - start_time.t...

Full article: http://rubini.us/doc/en/tools/memory-analysis/

Tweets

Analysis - Ontario curtailments could help wind...

windpowermonthly.com 24 Sep '13, 9am

The IESO introduced a new system on 11 September requiring wind and other renewable producers to respond to dispatch instr...

Woman trades Louis Vuitton bag 'to keep Steve Jobs' memory alive'

Woman trades Louis Vuitton bag 'to keep Steve J...

daddygunda.com 22 Sep '13, 10pm

She was a bag of nerves. (Credit: WCSC-TV Screenshot by Chris Matyszczyk/CNET) I understand that Samsung has been trying t...

#startups Woman trades Louis Vuitton bag 'to keep Steve Jobs' memory alive'

#startups Woman trades Louis Vuitton bag 'to ke...

news.cnet.com 22 Sep '13, 6pm

She was a bag of nerves. (Credit: WCSC-TV Screenshot by Chris Matyszczyk/CNET) I understand that Samsung has been trying t...

Woman trades Louis Vuitton bag 'to keep Steve J...

news.cnet.com 22 Sep '13, 6pm

She was a bag of nerves. (Credit: WCSC-TV Screenshot by Chris Matyszczyk/CNET) I understand that Samsung has been trying t...

Woman trades Louis Vuitton bag 'to keep Steve Jobs' memory alive'

Woman trades Louis Vuitton bag 'to keep Steve J...

news.cnet.com 22 Sep '13, 6pm

She was a bag of nerves. (Credit: WCSC-TV Screenshot by Chris Matyszczyk/CNET) I understand that Samsung has been trying t...

Woman trades Louis Vuitton bag 'to keep Steve J...

news.cnet.com 22 Sep '13, 6pm

She was a bag of nerves. (Credit: WCSC-TV Screenshot by Chris Matyszczyk/CNET) I understand that Samsung has been trying t...

Match analysis: Peter Fraser uses Opta data to ...

skysports.com 22 Sep '13, 6pm

For United, although they saw an increase in possession in the 10 minutes before half-time - with the possession stats at ...

Woman trades Louis Vuitton bag 'to keep Steve Jobs' memory alive': She was a bag of nerves. (Credit: WCSC-TV...

Woman trades Louis Vuitton bag 'to keep Steve J...

news.cnet.com 22 Sep '13, 6pm

She was a bag of nerves. (Credit: WCSC-TV Screenshot by Chris Matyszczyk/CNET) I understand that Samsung has been trying t...

Match analysis: @SkySportsPeteF looks at #MCFC’s crushing derby win over #MUFC.

Match analysis: @SkySportsPeteF looks at #MCFC’...

skysports.com 22 Sep '13, 6pm

Sergio Aguero scored twice against United with two technically excellent volleys Much will be made of the fact Manchester ...

Plastic Memory Firm Plans Pilot Line.

Plastic Memory Firm Plans Pilot Line.

eetimes.com 17 Sep '13, 1pm

Thin Film Electronics ASA, a publicly listed Norwegian developer of organic, ferroelectric, nonvolatile memory technology,...

#TBT @Eastbay Memory Lane // Jordan Brand 2000 & The Air Jordan 5 Retro

#TBT @Eastbay Memory Lane // Jordan Brand 2000 ...

blog.eastbay.com 19 Sep '13, 6pm

This Saturday, the Jordan Brand will take the Air Jordan 5 to a place it’s never been with the “3Lab5″ release. The shoe i...

Kim Ki Bum ‘Memory of Love Fan Meeting’ in Sing...

sup3rjunior.com 17 Sep '13, 8pm

Guys, if you ever need advice on how to get them girls, we suggest you take a leaf from Korean heartthrob Kim Ki Bum’s boo...

How to Perform an Opportunity Analysis to Avoid Sloppy Marketing Strategies

How to Perform an Opportunity Analysis to Avoid...

seerinteractive.com 17 Sep '13, 3pm

By attending homeschool conventions and talking to homeschool parents and students that were either frustrated by AP but u...

Analysis - US army targets renewables #green

Analysis - US army targets renewables #green

windpowermonthly.com 13 Sep '13, 11am

Earlier this week, the army announced that it had picked 17 wind companies that will be eligible to compete for a piece of...