profiling

Posted on 2014-05-07 12:13  xiaomaogong  阅读(190)  评论(0编辑  收藏  举报

po [[UIWindow keyWindow] recursiveDescription] : print all hierarchy under main window
po [[[UIWindow keyWindow] rootViewController] _printHierarchy] : print all hierarchy under rootViewController
bt : print all call stack info for current thread
bt all : print all call stack info for all threads
help : list all commands
help <command> : list the description for this command
print/pri/p : print value
expression/e count = 42 : modify value
e-- equals print : print value
e -o -- equals po : print object(not simple value)
p/<fmt> eg: p/x 16 --> ox10 : print format p/t 16 binary print p/s print string p/c print char
e int $a = 2; p $a * 19 ----> 38
process continue/continue/c : Continue debugging
thread step-over/next/n : Step over
step-in/step/s : step into
finish/f:step out
frame info : tell you current line number and source file
x/4c $str : inspect 4 bytes of char array $str
! e (void)free($str) : free memory
po [[[UIApplication sharedApplication] keyWindow] recursiveDescription] : print all hierarchy in main window of global context
-------------Updating UI---------------------
e id $myView = (id)0x7f82b1d01fd0 : define a View variable $myView
e (void)[$myView setBackgroundColor:[UIColor blueColor]] : set backgroundColor of $myView
e (void)[CATransaction flush] : Notify the render server to response to the flush changes
---------------------------------------------
-------------------Finding the Tap handler for Button----------------------------
po [$myButton allTargets] : show {(<MagicEventListener: 0x7fb58bd2e240)}
po [$myButton actionsForTarget:(id)0x7fb58bd2e240 forControlEvent:0] : show <__NSArrayM 0x7fb58bd2aa40>(_handleTap)
The handler is [MagicEventListener _handleTap:]
---------------------------------------------------------------------------------

 

Copyright © 2024 xiaomaogong
Powered by .NET 9.0 on Kubernetes