Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325
ó k]Œjc@s›dZddlZddlZddlZddlZddlZddlmZdgZdfd„ƒYZ dfd„ƒYZ d„Z d „Z d „Z d „Zd „Zd „Zd„Zedkr—ddlZyddlZWnek rûnXdejfd„ƒYZddlZeejƒdkrFejdZneZy4eeƒZejdIJejƒejdIJWnek r“nXndS(s3Class for printing reports on profiled python code.iÿÿÿÿN(t cmp_to_keytStatscBs<eZdZd„Zd„Zd„Zd„Zd„Zd„Zid8d 6d;d 6d>d6dAd6dDd6dGd6dJd6dMd6dPd6dQdRdSfdfd6dVd6dYd"6d\d%6d_d&6Z d'„Z d(„Z d)„Z d*„Z d+„Zd,„Zd-„Zd.„Zd/„Zd0„Zd1„Zd2d3„Zd4„Zd5„ZRS(`s<This class is used for creating reports from data generated by the Profile class. It is a "friend" of that class, and imports data either by direct access to members of Profile class, or by reading in a dictionary that was emitted (via marshal) from the Profile class. The big change from the previous Profiler (in terms of raw functionality) is that an "add()" method has been provided to combine Stats from several distinct profile runs. Both the constructor and the add() method now take arbitrarily many file names as arguments. All the print methods now take an argument that indicates how many lines to print. If the arg is a floating point number between 0 and 1.0, then it is taken as a decimal percentage of the available lines to be printed (e.g., .1 means print 10% of all available lines). If it is an integer, it is taken to mean the number of lines of data that you wish to have printed. The sort_stats() method now processes some additional options (i.e., in addition to the old -1, 0, 1, or 2). It takes an arbitrary number of quoted strings to select the sort order. For example sort_stats('time', 'name') sorts on the major key of 'internal function time', and on the minor key of 'the name of the function'. Look at the two tables in sort_stats() and get_sort_arg_defs(self) for more examples. All methods return self, so you can string together commands like: Stats('foo', 'goo').strip_dirs().sort_stats('calls'). print_stats(5).print_callers(5) cOsÒtj|_d|kr/|d|_|d=n|r‹|jƒ}|jƒdjg|D]}d|||f^qXƒ}td|‚nt|ƒs d}n|d}|d}|j |ƒ|j |ŒdS(Ntstreams, s%s=%ssunrecognized keyword args: %sii( tsyststdoutRtkeystsorttjoint ValueErrortlentNonetinittadd(tselftargstkwdsRtktextrastarg((s/usr/lib64/python2.7/pstats.pyt__init__>s      0     cCsÆd|_g|_d|_d|_d|_d|_d|_i|_i|_ i|_ |j |ƒd}z|j ƒd}Wd|rÁ|j dI|jr·|j |jdIn|j JnXdS(NiisInvalid timing dataiÿÿÿÿ(R t all_calleestfilestfcn_listttotal_ttt total_callst prim_callst max_name_lent top_leveltstatst sort_arg_dictt load_statstget_top_level_statsR(R Rttrouble((s/usr/lib64/python2.7/pstats.pyR Ts(               cCsì|si|_n±t|tƒr’t|dƒ}tj|ƒ|_|jƒy-tj|ƒ}t j |j ƒd|}WnnX|g|_ n1t |dƒrÃ|jƒ|j|_i|_n|jsètd|j|fƒ‚ndS(Ntrbs t create_statss.Cannot create or construct a %r object from %r(Rt isinstancet basestringtopentmarshaltloadtclosetoststatttimetctimetst_mtimeRthasattrR"t TypeErrort __class__(R Rtft file_stats((s/usr/lib64/python2.7/pstats.pyRjs(      cCs¯x¨|jjƒD]—\}\}}}}}|j|7_|j|7_|j|7_d|krtd|j|(R tdicttbad_listtwordttuptfragment((s/usr/lib64/python2.7/pstats.pytget_sort_arg_defs¾s        cGs‡|sd|_|St|ƒdkrnt|dttfƒrnidd6dd6dd6dd6|dg}n|jƒ}d }d |_d }xA|D]9}|||d}|j|||d7_d }q–Wg}xY|jjƒD]H\}\}} } } } |j || | | f|t |ƒ|fƒqéW|j d t t |ƒjƒƒg|_} x|D]}| j |dƒqhW|S( NiiRQiÿÿÿÿRHR+RKits, tkey((RR R#tinttlongRYt sort_typeRR>tappendR6RRt TupleComptcompare(R tfieldt sort_arg_defst sort_tuplet connectorRVt stats_listR7R8R9R:R;R<Rttuple((s/usr/lib64/python2.7/pstats.pyt sort_statsÑs2 +     +  cCs|jr|jjƒn|S(N(Rtreverse(R ((s/usr/lib64/python2.7/pstats.pyt reverse_orderñs cCsX|j}i|_}d}xã|jƒD]Õ\}\}}}}} t|ƒ} tt| ƒƒ|kr}tt| ƒƒ}ni} x*| jƒD]\} } | | t| ƒtfunc_strip_pathR R6R?RR RRR(R toldstatstnewstatsRR7R8R9R:R;R<tnewfunct newcallerstfunc2tcallertold_toptnew_top((s/usr/lib64/python2.7/pstats.pyt strip_dirsös.  (        c Csª|jr dSi|_}x‰|jjƒD]x\}\}}}}}||kr^i||( R RR7R8R9R:R;R<RpRq((s/usr/lib64/python2.7/pstats.pyt calc_calleess  +    c Csw|}t|tƒr“ytj|ƒ}Wn)tjk rS|d|7}||fSXg}xÒ|D]+}|jt|ƒƒra|j|ƒqaqaWnœt|ƒ}t|t ƒrëd|koÅdknrët ||dƒ}|| }nDt|t t fƒr/d|ko|knr/|}|| }nt|ƒt|ƒkrm|dt|ƒt|ƒ|f7}n||fS(Ns# ggð?gà?is6 List reduced from %r to %r due to restriction <%r> ( R#R$tretcompileterrortsearchR6R_R tfloatR\R](R tseltlisttmsgtnew_listtrexR7tcount((s/usr/lib64/python2.7/pstats.pyteval_print_amount%s,   + 1  cCs|j}|jr0|j}d|jd}n|jjƒ}d}x)|D]!}|j|||ƒ\}}qLWt|ƒ}|s�d|fS|j|IJ|t|jƒkröd}x>|D]3}tt|ƒƒ|kr¼tt|ƒƒ}q¼q¼Wn|d|fS(Ns Ordered by: s s! Random listing order was used ii( RRR^RRR�R RR6(R tsel_listtwidtht stat_listR}t selectionR€R7((s/usr/lib64/python2.7/pstats.pytget_print_list?s$        cGsx|jD]}|j|IJq W|jr4|jJnd}x*|jD]}|j|It|ƒIJqDW|j|I|jIdI|j|jkr¬|jd|jIn|jd|jIJ|jJ|j|ƒ\}}|r|jƒx|D]}|j |ƒqóW|jJ|jJn|S(Nt isfunction callss(%d primitive calls)sin %.3f secondss ( RRRtfunc_get_function_nameRRRR†t print_titlet print_line(R tamountRFtindentR7RƒR|((s/usr/lib64/python2.7/pstats.pyt print_statsWs(    cGsš|j|ƒ\}}|r–|jƒ|j|dƒxM|D]E}||jkrn|j|||j|ƒq<|j||iƒq<W|jJ|jJn|S(Ns called...(R†Rutprint_call_headingRtprint_call_lineR(R R‹RƒR|R7((s/usr/lib64/python2.7/pstats.pyt print_calleesms   c Gsƒ|j|ƒ\}}|r|j|dƒx@|D]8}|j|\}}}}} |j||| dƒq2W|jJ|jJn|S(Nswas called by...s<-(R†RŽRR�R( R R‹RƒR|R7R8R9R:R;R<((s/usr/lib64/python2.7/pstats.pyt print_callers|s  c Cs–|jdj|ƒ|IJt}xQ|jjƒD]@\}}}}}|r0|jƒjƒ} t| tƒ}Pq0q0W|r’|jd|dIJndS(Ns Function R‡s ncalls tottime cumtime(RtljusttFalseRt itervaluestnextR#Rg( R t name_sizet column_titlet subheaderR8R9R:R;R<tvalue((s/usr/lib64/python2.7/pstats.pyRއs%s->cCsT|jt|ƒj|ƒ|I|s1|jJdS|jƒ}|jƒd}x|D]ø}t|ƒ}||} t| tƒr| \} } } } | | kr°d| | f}n d| f}d|jddt|ƒƒt | ƒt | ƒ|f}|d}n.d|| t |j |d ƒf}|d }|j|||IJd }qTWdS( NRZs%d/%ds%ds %s %s %s %siiis %s(%r) %siR‡( RR6R’RRR#RgtrjustR tf8R(R R–tsourcet call_dicttarrowtclistRŒR7RNR™R9R8R:R;tsubstatst left_width((s/usr/lib64/python2.7/pstats.pyR�“s,         $ cCs|jdI|jdIJdS(Ns- ncalls tottime percall cumtime percallsfilename:lineno(function)(R(R ((s/usr/lib64/python2.7/pstats.pyR‰­s cCs|j|\}}}}}t|ƒ}||krK|dt|ƒ}n|j|jdƒI|jt|ƒI|dkr�|jdIn|jtt|ƒ|ƒI|jt|ƒI|dkrÜ|jdIn|jtt|ƒ|ƒI|jt|ƒIJdS(Nt/i iR‡is s (RtstrRRšR›RzR6(R R7R8R9R:R;R<tc((s/usr/lib64/python2.7/pstats.pyRбs    (iiÿÿÿÿ((iiÿÿÿÿ(((iiÿÿÿÿs call count(iiÿÿÿÿ((iiÿÿÿÿ(((iiÿÿÿÿs call count(iiÿÿÿÿ((iiÿÿÿÿ(((iiÿÿÿÿscumulative time(iiÿÿÿÿ((iiÿÿÿÿ(((iiÿÿÿÿscumulative time(ii((ii(((iis file name(ii((ii(((iis file name(ii((ii(((iis line number(ii((ii(((iis file name(ii((ii(((iis function name(ii(ii(ii(iiÿÿÿÿ((iiÿÿÿÿ(((iiÿÿÿÿsprimitive call count(ii((ii(((iis standard name(iiÿÿÿÿ((iiÿÿÿÿ(((iiÿÿÿÿs internal time(iiÿÿÿÿ((iiÿÿÿÿ(((iiÿÿÿÿs internal time(t__name__t __module__t__doc__RR RRR RGRSRYRhRjRtRuR�R†R�R�R‘RŽR�R‰RŠ(((s/usr/lib64/python2.7/pstats.pyR sH                R`cBs eZdZd„Zd„ZRS(s•This class provides a generic function for comparing any two tuples. Each instance records a list of tuple-indices (from most significant to least significant), and sort direction (ascending or decending) for each tuple-index. The compare functions can then be used as the function argument to the system sort() function when a list of tuples need to be sorted in the instances order.cCs ||_dS(N(tcomp_select_list(R R¨((s/usr/lib64/python2.7/pstats.pyRËscCsSxL|jD]A\}}||}||}||kr;| S||kr |Sq WdS(Ni(R¨(R tlefttrighttindext directiontltr((s/usr/lib64/python2.7/pstats.pyRaÎs    (R¥R¦R§RRa(((s/usr/lib64/python2.7/pstats.pyR`Ãs cCs(|\}}}tjj|ƒ||fS(N(R)tpathtbasename(t func_nameRFRLRN((s/usr/lib64/python2.7/pstats.pyRkÛscCs|dS(Ni((R7((s/usr/lib64/python2.7/pstats.pyRˆßscCsZ|d d krN|d}|jdƒrG|jdƒrGd|dd!S|Snd |SdS( Nit~its{%s}iiÿÿÿÿs %s:%d(%s)(R²i(t startswithtendswith(R±RN((s/usr/lib64/python2.7/pstats.pyR6âs  c CsV|\}}}}}|\}}} } } |||||| || t| |ƒfS(s3Add together all the stats for two profile entries.(t add_callers( ttargetRœR8R9R:R;R<tt_cctt_nctt_tttt_ctt t_callers((s/usr/lib64/python2.7/pstats.pyR?óscCsÅi}x$|jƒD]\}}|||R#Rgtzip(R¸Rœt new_callersR7Rqti((s/usr/lib64/python2.7/pstats.pyR·ús 9cCs+d}x|jƒD]}||7}qW|S(s@Sum the caller statistics to get total number of calls received.i(R”(R<R9RH((s/usr/lib64/python2.7/pstats.pyt count_calls scCsd|S(Ns%8.3f((tx((s/usr/lib64/python2.7/pstats.pyR›st__main__tProfileBrowsercBsõeZdd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z d„Z d „Z d „Z d „Zd „Zd „Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„ZRS(cCsNtjj|ƒd|_d|_tj|_|dk rJ|j |ƒndS(Ns% ( tcmdtCmdRtpromptR RRRRtdo_read(R tprofile((s/usr/lib64/python2.7/pstats.pyR&s     cCsð|jƒ}g}x¨|D] }y|jt|ƒƒwWntk rLnXyKt|ƒ}|dkst|dkr‡|jdIJwn|j|ƒwWntk r«nX|j|ƒqW|jrßt|j|ƒ|Œn |jdIJdS(Niis#Fraction argument must be in [0, 1]sNo statistics object is loaded.(tsplitR_R\RRzRRtgetattr(R tfnRLRt processedttermtfrac((s/usr/lib64/python2.7/pstats.pytgeneric.s,         cCsR|jdIJ|jdIJ|jdIJ|jdIJ|jdIJ|jdIJdS(NsArguments may be:s0* An integer maximum number of entries to print.s:* A decimal fractional number between 0 and 1, controllings- what fraction of selected entries to print.s8* A regular expression; only entries with function namess that match it are printed.(R(R ((s/usr/lib64/python2.7/pstats.pyt generic_helpFs      cCs-|jr|jj|ƒn |jdIJdS(NsNo statistics object is loaded.i(RR R(R RL((s/usr/lib64/python2.7/pstats.pytdo_addNs  cCs|jdIJdS(Ns>Add profile info from given file to current statistics object.(R(R ((s/usr/lib64/python2.7/pstats.pythelp_addTscCs|jd|ƒS(NR�(RÐ(R RL((s/usr/lib64/python2.7/pstats.pyt do_calleesWscCs|jdIJ|jƒdS(Ns6Print callees statistics from the current stat object.(RRÑ(R ((s/usr/lib64/python2.7/pstats.pyt help_calleesYs cCs|jd|ƒS(NR‘(RÐ(R RL((s/usr/lib64/python2.7/pstats.pyt do_callers]scCs|jdIJ|jƒdS(Ns6Print callers statistics from the current stat object.(RRÑ(R ((s/usr/lib64/python2.7/pstats.pyt help_callers_s cCs|jdIJdS(NRZi(R(R RL((s/usr/lib64/python2.7/pstats.pytdo_EOFcs cCs|jdIJdS(NsLeave the profile brower.(R(R ((s/usr/lib64/python2.7/pstats.pythelp_EOFfscCsdS(Ni((R RL((s/usr/lib64/python2.7/pstats.pytdo_quitiscCs|jdIJdS(NsLeave the profile brower.(R(R ((s/usr/lib64/python2.7/pstats.pyt help_quitkscCsÄ|r�yt|ƒ|_WnUtk r@}|j|dIJdStk rp}|j|jjdI|IJdSX|d|_n?t|jƒdkr³|jd }|j |ƒn |jdIJdS(Nit:s% iiþÿÿÿs1No statistics object is current -- cannot reload.i( RRtIOErrorRt ExceptionR0R¥RÇR RÈ(R RLRterr((s/usr/lib64/python2.7/pstats.pyRÈns  cCs|jdIJ|jdIJdS(Ns+Read in profile data from a specified file.s*Without argument, reload the current file.(R(R ((s/usr/lib64/python2.7/pstats.pyt help_reads cCs*|jr|jjƒn |jdIJdS(NsNo statistics object is loaded.i(RRjR(R RL((s/usr/lib64/python2.7/pstats.pyt do_reverseƒs  cCs|jdIJdS(Ns/Reverse the sort order of the profiling report.(R(R ((s/usr/lib64/python2.7/pstats.pyt help_reverse‰scs¶|js|jdIJdS|jjƒ‰|rjt‡fd†|jƒDƒƒrj|jj|jƒŒnH|jdIJx8tjjƒD]'\}}|jd||dfIJq‡WdS(NsNo statistics object is loaded.c3s|]}|ˆkVqdS(N((t.0RÂ(tabbrevs(s/usr/lib64/python2.7/pstats.pys ‘ss/Valid sort keys (unique prefixes are accepted):s%s -- %sii( RRRYtallRÊRhRRSR>(R RLR[R™((Räs/usr/lib64/python2.7/pstats.pytdo_sortŒs  ( cCs|jdIJ|jdIJdS(Ns.Sort profile data according to specified keys.s3(Typing `sort' without arguments lists valid keys.)(R(R ((s/usr/lib64/python2.7/pstats.pyt help_sort˜s cGs)gtjD]}|j|ƒr |^q S(N(RRSRµ(R ttextRta((s/usr/lib64/python2.7/pstats.pyt complete_sort›scCs|jd|ƒS(NR�(RÐ(R RL((s/usr/lib64/python2.7/pstats.pytdo_statsžscCs|jdIJ|jƒdS(Ns.Print statistics from the current stat object.(RRÑ(R ((s/usr/lib64/python2.7/pstats.pyt help_stats s cCs*|jr|jjƒn |jdIJdS(NsNo statistics object is loaded.(RRtR(R RL((s/usr/lib64/python2.7/pstats.pytdo_strip¤s cCs|jdIJdS(Ns<Strip leading path information from filenames in the report.(R(R ((s/usr/lib64/python2.7/pstats.pyt help_strip©scCs|jdIJdS(NsShow help for a given command.(R(R ((s/usr/lib64/python2.7/pstats.pyt help_help¬scCs|r |SdS(N(R (R tstopRL((s/usr/lib64/python2.7/pstats.pytpostcmd¯sN(R¥R¦R RRÐRÑRÒRÓRÔRÕRÖR×RØRÙRÚRÛRÈRàRáRâRæRçRêRëRìRíRîRïRñ(((s/usr/lib64/python2.7/pstats.pyRÄ%s4                        is*Welcome to the profile statistics browser.sGoodbye.( R§RR)R+R&Rvt functoolsRt__all__RR`RkRˆR6R?R·RÁR›R¥RÅtreadlinet ImportErrorRÆRÄR targvt initprofileR tbrowserRtcmdlooptKeyboardInterrupt(((s/usr/lib64/python2.7/pstats.pytsF      ÿ¤         �