summaryrefslogtreecommitdiff
path: root/lib/profile.rb
diff options
context:
space:
mode:
author(no author) <(no author)@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-02-15 07:31:51 +0000
committer(no author) <(no author)@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-02-15 07:31:51 +0000
commit336348328c07b663c09eff79c40e4d9dd363b607 (patch)
tree86cdfce906bcc995c55e83a907f9d9f7be071da0 /lib/profile.rb
parent62e648e148b3cb9f96dcce808c55c02b7ccb4486 (diff)
This commit was manufactured by cvs2svn to create tag
'v1_3_1_990215'. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tags/v1_3_1_990215@403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/profile.rb')
-rw-r--r--lib/profile.rb2
1 files changed, 2 insertions, 0 deletions
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