summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorZsolt Kozaroczy <[email protected]>2023-05-24 09:32:13 +0200
committerGitHub <[email protected]>2023-05-24 09:32:13 +0200
commitc05afbcdac3cbc0e96348c7ba35f3f70ef0fe96b (patch)
tree68201a645c811c29300c728daf2972f0d1ec1bd5
parent4437b909792909cfc677484d963c9af2bfa91edd (diff)
parent763fb0e77062cd8f56439f1d192e00900d47aded (diff)
downloadcaxlsx-c05afbcdac3cbc0e96348c7ba35f3f70ef0fe96b.tar.gz
caxlsx-c05afbcdac3cbc0e96348c7ba35f3f70ef0fe96b.zip
Merge pull request #256 from tagliala/chore/fix-profiler-deprecations
Fix profiler deprecations
-rwxr-xr-xtest/profile.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/profile.rb b/test/profile.rb
index adbc7ab9..a0f34f8d 100755
--- a/test/profile.rb
+++ b/test/profile.rb
@@ -11,7 +11,7 @@ input2 = (65..122).to_a.pack('U*').chars.to_a # these do not need to be escaped
10.times { row << input1.shuffle.join }
10.times { row << input2.shuffle.join }
-profile = RubyProf.profile do
+result = RubyProf::Profile.profile do
p = Axlsx::Package.new
p.workbook.add_worksheet do |sheet|
10_000.times do
@@ -21,5 +21,5 @@ profile = RubyProf.profile do
p.to_stream
end
-printer = RubyProf::FlatPrinter.new(profile)
+printer = RubyProf::FlatPrinter.new(result)
printer.print($stdout, {})