repo.or.cz
/
rbx.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Fix up Rubinius specific library specs.
[rbx.git]
/
lib
/
profiler.rb
blob
34f3d5fcf21a74ac1be48523d539cc6972c634bf
1
module Profiler__
2
def start_profile
3
@p = Sampler.new
4
@p.start
5
end
6
7
def stop_profile
8
@p.stop
9
end
10
11
def print_profile(f)
12
stop_profile
13
@p.display(f)
14
end
15
16
module_function :start_profile, :stop_profile, :print_profile
17
end