From 2344efc3835c3226fa06a85e6f3b1871415b8ad1 Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 28 Jan 1999 07:55:30 +0000 Subject: 990128 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_3@382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/profile.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/profile.rb') diff --git a/lib/profile.rb b/lib/profile.rb index 3abcc37662..3634b5bdc2 100644 --- a/lib/profile.rb +++ b/lib/profile.rb @@ -16,6 +16,7 @@ module Profiler__ data = MAP[id] unless data name = klass.to_s + if name.nil? then name = '' end if klass.kind_of? Class name += "#" else @@ -34,6 +35,7 @@ module Profiler__ END { set_trace_func nil total = Float(Time.times[0]) - Start + if total == 0 then total = 0.01 end MAP[:toplevel][1] = total # f = open("./rmon.out", "w") f = STDERR -- cgit v1.2.3