ruby-prof 1.4.3 → 1.4.4

Sign up to get free protection for your applications and to get access to all the features.
data/test/temp.rb DELETED
@@ -1,20 +0,0 @@
1
- require 'redis'
2
-
3
- path = File.expand_path(File.join(__dir__, '..', 'lib'))
4
- $LOAD_PATH << path
5
- require 'ruby-prof'
6
-
7
- Widget = Struct.new(:key) do
8
- def set!
9
- Redis.current.set(key, 1, ex: 10)
10
- end
11
- end
12
-
13
- result = RubyProf.profile do
14
- (1..20).each { |i| Widget.new(i).set! }
15
- end
16
-
17
- printer = RubyProf::CallStackPrinter.new(result)
18
- File.open("framez.html", 'w:ASCII-8BIT') do |file|
19
- printer.print(file, {})
20
- end