Hello, I'm looking for a program to profile my non-rails ruby program...
I found ruby-prof, can that do the job? if it does, I have no idea how
to install and run it to profile my programs =(
(unprof.rb is a wrapper script that profiles your code and drops
profiling output in the current directory)
jeremy
···
On Fri, Jun 6, 2008 at 12:29 PM, Justin To <tekmc@hotmail.com> wrote:
Hello, I'm looking for a program to profile my non-rails ruby program...
I found ruby-prof, can that do the job? if it does, I have no idea how
to install and run it to profile my programs =(
Hello, I'm looking for a program to profile my non-rails ruby program...
I found ruby-prof, can that do the job? if it does, I have no idea how
to install and run it to profile my programs =(
gem install ruby-prof
ruby-prof my-prog.rb
See ruby-prof -h for optoins. The -p graph_html option is nice. I've been a very happy user of ruby-prof.
···
--
vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407
Hello, I'm looking for a program to profile my non-rails ruby program...
I found ruby-prof, can that do the job? if it does, I have no idea how
to install and run it to profile my programs =(
Hello, I'm looking for a program to profile my non-rails ruby program...
I found ruby-prof, can that do the job? if it does, I have no idea how
to install and run it to profile my programs =(
I wrote a series of short articles about using ruby-prof a while ago,
and they still seem pretty popular. Perhaps these will help:
···
On Fri, Jun 6, 2008 at 1:29 PM, Justin To <tekmc@hotmail.com> wrote:
Thanks, I got it to install in RubyGems Package Manager...now to run it
on my file, where must that file be? My file is in a folder on the
desktop...when
I run ruby -runprof my-file-name.rb
it outputs: ruby: No such file or directory -- my-file-name.rb
<LoadError>
On Fri, Jun 6, 2008 at 1:29 PM, Justin To <tekmc@hotmail.com> wrote:
Hello, I'm looking for a program to profile my non-rails ruby program...
I found ruby-prof, can that do the job? if it does, I have no idea how
to install and run it to profile my programs =(
I wrote a series of short articles about using ruby-prof a while ago,
and they still seem pretty popular. Perhaps these will help:
I'm sorry to say that those articles didn't help...I'm trying to run
ruby-prof on a program saved onto the desktop... where do I go to type
in the command(s) and what commands should I type?
When you said "RubyGems Package Manager" looks like you're running
Windows and you have One-Click Installer "installed".
Just jump into a command prompt and see if "ruby -v" get you the ruby
version installed, if so, that means you have Ruby in your PATH.
First you need to get your feets wet with command line, 'cd' into your
desktop folder (whatever is that, you should know) and try running the
suggested commandline from the articles.
HTH,
···
On Jun 9, 6:05 pm, Justin To <te...@hotmail.com> wrote:
pat eyler wrote:
> On Fri, Jun 6, 2008 at 1:29 PM, Justin To <te...@hotmail.com> wrote:
>> Hello, I'm looking for a program to profile my non-rails ruby program...
>> I found ruby-prof, can that do the job? if it does, I have no idea how
>> to install and run it to profile my programs =(
> I wrote a series of short articles about using ruby-prof a while ago,
> and they still seem pretty popular. Perhaps these will help:
I'm sorry to say that those articles didn't help...I'm trying to run
ruby-prof on a program saved onto the desktop... where do I go to type
in the command(s) and what commands should I type?
Create shortcut on desktop, answer the first question with "cmd"
(without quotes).
Name it as you wish. When created, open its properties, and replace
%windir% with
%homedrive%%homepath% (no spaces between %%). Save.
Now you can click on it and a dos/cmd window appears.
Alternative way is Start menu, Accessories, command prompt, (window
appears), %homedrive%<enter>
cd %homepath%\Desktop<enter>
or replace %homedrive% and %homepath% with actual values (C:,
\documents and settings\<your user name>)
J.
···
On Mon, Jun 9, 2008 at 18:05, Justin To <tekmc@hotmail.com> wrote:
pat eyler wrote:
On Fri, Jun 6, 2008 at 1:29 PM, Justin To <tekmc@hotmail.com> wrote:
Hello, I'm looking for a program to profile my non-rails ruby program...
I found ruby-prof, can that do the job? if it does, I have no idea how
to install and run it to profile my programs =(
I wrote a series of short articles about using ruby-prof a while ago,
and they still seem pretty popular. Perhaps these will help:
I'm sorry to say that those articles didn't help...I'm trying to run
ruby-prof on a program saved onto the desktop... where do I go to type
in the command(s) and what commands should I type?