github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

chrisa / ruby-dtrace

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 20
    • 2
  • Source
  • Commits
  • Network (2)
  • Issues (0)
  • Downloads (1)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (2)
    • master ✓
    • sparc
  • Tags (1)
    • 0.2.8
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Ruby bindings for DTrace — Read more

  cancel

http://ruby-dtrace.rubyforge.org

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Version bump to 0.2.8 
chrisa (author)
Thu Jul 23 10:59:15 -0700 2009
commit  3daf3aef5bcb67fe9f94f1beb4ccca56ed9777ad
tree    54c3f6a93e0517e1da1cc35dc92fd7ab6276d1ce
parent  409335408351cd24fa9e3a9993b466c84ec428a3
ruby-dtrace /
name age
history
message
file History.txt Thu Jul 23 10:59:15 -0700 2009 Version bump to 0.2.8 [chrisa]
file Manifest.txt Sun Aug 03 06:31:42 -0700 2008 Update Manifest.txt for imported dtrace_probes ... [chrisa]
file README.txt Thu Jul 23 10:59:15 -0700 2009 Version bump to 0.2.8 [chrisa]
file Rakefile Fri Jun 13 13:16:51 -0700 2008 Separate version out to avoid need to load as-y... [Chris Andrews]
directory examples/ Sat Jun 14 07:43:33 -0700 2008 Update to new naming scheme for Dtrace namespace. [Chris Andrews]
directory ext/ Fri Jul 10 00:51:58 -0700 2009 Add a each_probe_prog method which yields each ... [chrisa]
directory lib/ Loading commit data...
directory plugin/ Sun Aug 03 06:25:50 -0700 2008 Merge dtrace_probes as plugin/dtrace_probes [chrisa]
file ruby-dtrace.gemspec Thu Jul 23 10:59:15 -0700 2009 Version bump to 0.2.8 [chrisa]
directory test/ Fri Jul 10 00:51:58 -0700 2009 Add a each_probe_prog method which yields each ... [chrisa]
directory www/ Sat Dec 01 03:45:50 -0800 2007 add website dir git-svn-id: http://ruby-dtrace... [chrisandrews]
README.txt
Ruby-DTrace is Ruby bindings for Dtrace, which allows you to add
DTrace probes to your Ruby programs, and to write D-based programs
with Ruby.

== FEEDBACK

Fork the repository on Github: http://github.com/chrisa/ruby-dtrace

Rubyforge mailing list: http://rubyforge.org/mailman/listinfo/ruby-dtrace-users

== FEATURES
  
Consumer:

* Access to the D API
* Probe metadata
* Run D programs
* Access aggregates
* Consume output from D programs

Probes:

* Create USDT providers from Ruby, at runtime.
* No code-generation or gcc/linker dependency

== SYNOPSIS

Consumer: see Dtrace

    require 'Dtrace'

    t = Dtrace.new 
    progtext = 'ruby$1:::function-entry{ @a[strjoin(strjoin(copyinstr(arg0),"."),copyinstr(arg1))] = count(); } END { 
    printa(@a); }'
    prog = t.compile progtext
    prog.execute

    t.go

    [...]
    
    c = DtraceConsumer.new(t)
    c.consume_once do |rec|
      # handle records
    end

Probes: see Dtrace::Provider

    require 'dtrace/provider'

    Dtrace::Provider.create :rubyprog do |p|
      p.probe :foo, :string, :string
      p.probe :bar, :integer, :integer
    end

    Dtrace::Probe::Rubyprog.foo do |p|
      p.fire('fired!', 'again')
    end    

    Dtrace::Probe::Rubyprog.bar do |p|
      p.fire(42, 27)
    end    

== REQUIREMENTS

* For the consumer API, platform with DTrace support (OpenSolaris, Mac
  OS X 10.5 Leopard tested, possibly also FreeBSD).

* For the probe API, a platform with DTrace support (as for the
  consumer API), with a 32 bit Ruby build - i386, PowerPC (for OS X)
  and SPARC (for Solaris) are all supported. 64 bit builds are not,
  yet.
  
* root, or some/all of the dtrace privileges on Solaris: dtrace_user,
  dtrace_proc and dtrace_kernel.

== INSTALL

 $ sudo gem install ruby-dtrace

== LICENSE

Copyright (c) 2008, 2009 Chris Andrews <chris@nodnol.org>

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server