Andrew Grimm
Andrew Grimm

Reputation: 81570

What's a __varmap__ in Ruby?

I've been using memprof on a script in Ruby 1.8.7, and the most common thing that's created is a __varmap__. What is a varmap?

Upvotes: 1

Views: 159

Answers (1)

kristianp
kristianp

Reputation: 5895

I think varmap refers to T_VARMAP which is an in-block variable container: http://www.ruby-forum.com/topic/141449 . When memprof encounters a T_VARMAP it prints out __varmap__ : https://github.com/ice799/memprof/blob/master/ext/memprof.c

Upvotes: 1

Related Questions