# Zenprofile (event\_hook?) on Ruby 1.9 woes

**URL:** <https://www.ruby-forum.com/t/zenprofile-event-hook-on-ruby-1-9-woes/174420>\
**Category:** Ruby\
**Created:** [August 26, 2009, 5:21pm UTC](https://www.ruby-forum.com/t/zenprofile-event-hook-on-ruby-1-9-woes/174420 "2009-08-26T17:21:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shot\_SPiotr\_S.S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e79b87/32.png) [@Shot\_SPiotr\_S.S](https://www.ruby-forum.com/u/Shot_SPiotr_S.S)\
**Post date:** [August 26, 2009, 5:21pm UTC](https://www.ruby-forum.com/t/zenprofile-event-hook-on-ruby-1-9-woes/174420/1 "2009-08-26T17:21:02Z")

</div>

Iâ€™m trying to profile my Ruby 1.9 code with zenprofile, but a simple  
â€˜gem install zenprofileâ€™ and a subsequent profiling attempt breaks:

shot@devielle:~/PhD/art-decomp$ time zenprofile bin/inputs kiss/s510  
/home/shot/.ruby\_inline/Inline\_EventHook\_58b9.c:4:18: error: node.h: No  
such file or directory  
/home/shot/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/event\_hook-1.0.1/lib/event\_hook.rb:66:  
error: expected â€˜)â€™ before â€˜eventâ€™  
/home/shot/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/event\_hook-1.0.1/lib/event\_hook.rb:  
In function â€˜add\_event\_hookâ€™:  
/home/shot/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/event\_hook-1.0.1/lib/event\_hook.rb:98:  
error: â€˜event\_hookâ€™ undeclared (first use in this function)  
â€¦

I tried to side-step the first error by quickly  
patching event\_hook-1.0.1/lib/event\_hook.rb with  
builder.add\_compile\_flags  
‘-I/home/shot/opt/ruby-1.9.1-p243/include/ruby-1.9.1/ruby-1.9.1-p243/’  
but it doesnâ€™t help at with the rest:

shot@devielle:~/PhD/art-decomp$ time zenprofile bin/inputs kiss/s510  
/home/shot/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/event\_hook-1.0.1/lib/event\_hook.rb:68:  
error: expected â€˜)â€™ before â€˜eventâ€™  
/home/shot/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/event\_hook-1.0.1/lib/event\_hook.rb:  
In function â€˜add\_event\_hookâ€™:  
/home/shot/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/event\_hook-1.0.1/lib/event\_hook.rb:100:  
error: â€˜event\_hookâ€™ undeclared (first use in this function)  
â€¦

I get the same problem with a simple file containing just

p rand

â€” Shot
