Sha256: cdec93a353510dee574a6bf375be56fc3fe74317b4944f33d00d33e2f607d16c
Contents?: true
Size: 882 Bytes
Versions: 5
Compression:
Stored size: 882 Bytes
Contents
# -*- coding: utf-8 -*- # Copyright (C) 2010 Rocky Bernstein <rockyb@rubyforge.net> require_relative 'base/cmd' class Trepan::Command::NoCacheCommand < Trepan::Command unless defined?(HELP) HELP = "Remove getinlinecache instructions from instruction sequence." CATEGORY = 'running' MAX_ARGS = 0 # Need at most this many NAME = File.basename(__FILE__, '.rb') NEED_STACK = true SHORT_HELP = 'Remove getinlinecache instructions from instruction sequence.' end # This method runs the command def run(args) if @proc.frame.iseq puts @proc.frame.iseq.disassemble count = @proc.frame.iseq.killcache msg "%d locations removed" % count # puts @proc.frame.iseq.disassemble end end end if __FILE__ == $0 require_relative '../mock' dbgr, cmd = MockDebugger::setup cmd.run([cmd.name]) end
Version data entries
5 entries across 5 versions & 1 rubygems