This was intended to be a prototype to demostrate how the rbkit server's api can be used to write custom profiler front-ends. The atom-shell version used here is quite old and might use older packages and APIs. Ideally, if you want to use this, you might want to use the Electron app (which is a fancy new name for the atom-shell project) and then customize things to make this work.
A GUI client for rbkit built using atom-shell
- Download atom-shell and extract it somewhere
- Create an alias
atom-shell
that points to the atom-shell executable (optional) - Install atom-package-manager
npm install -g atom-package-manager
cd
into therbkit-atom
directory- Run
apm install .
- Run
atom-shell .
cd
into thebuild
directory- Run
npm install
- Run
gulp
to compile CoffeeScript files on the fly
For now, the command messaging system is not yet available, so, use
either Ruby (rbkit/experiments/rbkit_command_test.rb
) or follow the
following instructions:
- Install the
zmq
node library usingnpm install -g zmq
- open a
node
repl and type the following commands one by one:
var zmq = require('zmq');
var sock = zmq.socket('req');
sock.connect('tcp://127.0.0.1:5556');
sock.send('start_memory_profile');
console.log('sent message to start profiling'); /* optional */
/* That should start the profiling engine. The data would be available
at 127.0.0.1:5555
The following lines are optional
*/
sock.on('message', function(response) {
console.log('got response');
});