Skip to content

Commit

Permalink
Merge pull request #131 from lianchengjiang/master
Browse files Browse the repository at this point in the history
add a memory warning command
  • Loading branch information
arigrant committed Dec 30, 2015
2 parents fffedaa + 196bd78 commit 8f6ed96
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions commands/FBDebugCommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ def lldbcommands():
FBWatchInstanceVariableCommand(),
FBFrameworkAddressBreakpointCommand(),
FBMethodBreakpointCommand(),
FBMemoryWarningCommand(),
]

class FBWatchInstanceVariableCommand(fb.FBCommand):
Expand Down Expand Up @@ -173,3 +174,13 @@ def classItselfImplementsSelector(klass, selector):
return False
else:
return True

class FBMemoryWarningCommand(fb.FBCommand):
def name(self):
return 'mwarning'

def description(self):
return 'simulate a memory warning'

def run(self, arguments, options):
lldb.debugger.HandleCommand('expr (void)[[UIApplication sharedApplication] performSelector:@selector(_performMemoryWarning)];')

0 comments on commit 8f6ed96

Please sign in to comment.