lib/vedeu/support/trace.rb in vedeu-0.3.4 vs lib/vedeu/support/trace.rb in vedeu-0.3.5
- old
+ new
@@ -8,13 +8,28 @@
# occurs inside Vedeu. This is very useful (to me!) for debugging. Running
# this will make your application less responsive, and the tests
# excruciatingly slow to run.
#
# @api private
+ #
class Trace
+ # @todo
+ # Replace this class with this:
+ #
+ # def self.trace
+ # trace = TracePoint.new(:call) do |tp|
+ # if tp.defined_class.to_s.match(/Troo/)
+ # Vedeu.log(type: :debug, message: [tp.defined_class.to_s, tp.method_id.to_s].join(' '))
+ # end
+ # end
+ # trace.enable
+ # end
+
# @param options [Hash]
- # @return []
+ # @option option event [Symbol]
+ # @option option trace [Boolean]
+ # @return [void]
def self.call(options = {})
new(options).trace
end
# @param options [Hash]