summaryrefslogtreecommitdiff
path: root/lib/tracer.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-02-18 15:38:56 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-02-18 15:38:56 +0000
commit7bd38510a8f6522ef3c070da716a1b7a9d8ef529 (patch)
tree3c18f2f2d28784fd58e0324a1092ddb568863d46 /lib/tracer.rb
parentb070abfc2045a4484e7bce34172764bbce5d3ff1 (diff)
* lib/tracer.rb (Tracer::Tracer.add_filter): turn on tracer mode
only when caller() level size is one. [ruby-core:07389] * lib/rdoc/parsers/parse_rb.rb: need not to require "tracer". [ruby-core:07389] * sample/rtags.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/tracer.rb')
-rw-r--r--lib/tracer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tracer.rb b/lib/tracer.rb
index 893a9d5..71aa49c 100644
--- a/lib/tracer.rb
+++ b/lib/tracer.rb
@@ -162,6 +162,6 @@ if $0 == __FILE__
ARGV.shift
Tracer.on
require $0
-else
+elsif caller(0).size == 1
Tracer.on
end