Try to install on OS X 10.10 it fails, aftet brew install zeromq msgpack
installed.
Probably need to add it in README.md in Usage section
Lack of example, would be nice to have copy-paste simple code. Something like rack or sinatra app, or even WebRick app.
I add code
require "rbkit"
Rbkit.start_server
Connect via GUI and it's empty charts. It show it's connected, nothing happening
After I add Rbkit.start_profiling
it started to work
Charts have time moving now, but it's still zeros. No data. Even small sinatra app should have some memory usage
I stopped process, GUI still says "Currently profiling ruby application", time moving. Data still zeros
Try to disconnect and connect again, and got "Error connecting to Ruby application"
Re-open, press Cmd+Q, and go "Error connecting to Ruby application" again
Restarting process and it says "Rbkit server couldn't bind to socket, check if it is already running. Profiling data will not be available."
I think it will be better if we can know what socket it try to open (port and interface, eg 127.0.0.1:5555). I checked with netstat
nothing uses 5555 and 5556. Try with telnet - also Connection refused
I try use different ports: Rbkit.start_server(pub_port: 30010, request_port: 30020)
- still same
As I see network interface is not configurable
sprintf(zmq_endpoint, "tcp://127.0.0.1:%d", FIX2INT(pub_port));
It's possible to get info about connection error http://api.zeromq.org/2-1:zmq-bind, may be it will help to fix problem easier
Ok, version from ruby gems is outdated, there is alot of commits since january 15
Recompile from git, run it and got:
% ruby sinatra.rb
[1] 34085 abort ruby sinatra.rb
It caused by Rbkit.start_server(pub_port: 30010, request_port: 30020)
, with just Rbkit.start_server
it give same "Rbkit server couldn't bind to socket, check if it is already running. Profiling data will not be available."
Try Rbkit.start_profiling(pub_port: 9999, request_port: 9998)
from some pull request, it gives same message
Now I have ruby process using 86-70% CPU all the time, can not close with Ctrl+C, memory 23mb as expected
Try to run experiments/using_rbkit.rb
from latest git, seems like it opened port, connection via GUI and GUI crashed.