Class: DTrace
- Inherits:
-
Object
- Object
- DTrace
- Defined in:
- lib/dtrace.rb,
lib/dtrace/data.rb,
lib/dtrace/record.rb,
lib/dtrace/tracer.rb,
lib/dtrace/version.rb,
lib/dtrace/consumer.rb,
lib/dtrace/aggregate.rb,
lib/dtrace/probedata.rb,
lib/dtrace/probedesc.rb,
lib/dtrace/stackrecord.rb,
lib/dtrace/aggregateset.rb,
lib/dtrace/printfrecord.rb,
ext/dtrace_api.c
Overview
Ruby-DTrace © 2007 Chris Andrews <[email protected]>
A DTrace record for the formatted part of a printf() action.
Defined Under Namespace
Classes: AggData, Aggregate, AggregateSet, BufData, Consumer, Data, DropData, ErrData, Exception, PrintfRecord, ProbeData, ProbeDesc, Process, Program, ProgramInfo, RecDesc, Record, StackRecord, Tracer
Constant Summary collapse
- STATUS_NONE =
0
- STATUS_OKAY =
1
- STATUS_EXITED =
2
- STATUS_FILLED =
3
- STATUS_STOPPED =
4
- VERSION =
'0.4.0'
Instance Method Summary collapse
- #buf_consumer ⇒ Object
- #close ⇒ Object
- #compile ⇒ Object
- #createprocess ⇒ Object
- #drop_consumer ⇒ Object
-
#each_probe(match = nil, &block) ⇒ Object
Yields each probe on the system, optionally matching against a probe specification:.
- #each_probe_all ⇒ Object
- #each_probe_match ⇒ Object
- #each_probe_prog ⇒ Object
- #err_consumer ⇒ Object
- #error ⇒ Object
- #go ⇒ Object
- #grabprocess ⇒ Object
- #setopt ⇒ Object
- #sleep ⇒ Object
- #status ⇒ Object
- #stop ⇒ Object
- #work ⇒ Object
Instance Method Details
#buf_consumer ⇒ Object
#close ⇒ Object
#compile ⇒ Object
#createprocess ⇒ Object
#drop_consumer ⇒ Object
#each_probe(match = nil, &block) ⇒ Object
Yields each probe on the system, optionally matching against a probe specification:
e.g.
- syscall:
-
-> all probes in the syscall provider
pid123:::return -> all return probes in pid 123.
81 82 83 84 85 86 87 88 89 90 91 92 |
# File 'lib/dtrace.rb', line 81 def each_probe(match=nil, &block) if match parts = match.split(':', 4) begin each_probe_match(*parts, &block) rescue ArgumentError => e raise DTrace::Exception.new("each_probe: probe specification expected (e.g. 'provider:::')") end else each_probe_all(&block) end end |