PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB` yyMazc@sldZddgZddlZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddl Z ddl m ZyddlmZWn"ek rddlmZYnXyddlZWn'ek r ejZdd ZYnXd d Zd d Zd dZdZejdZGdddZddZddZGdddZddZddZ dddZ"ddZ#Gd ddZ$d!d"Z%dd#d$Z&d%d&Z'Gd'd(d(eZ(d)d*Z)d+d,Z*d-d.Z+d/d0Z,dd1d2Z-d3d4Z.e/d5krhe&ndS(6uprogram/module to trace Python program or function execution Sample use, command line: trace.py -c -f counts --ignore-dir '$prefix' spam.py eggs trace.py -t --ignore-dir '$prefix' spam.py eggs trace.py --trackcalls spam.py eggs Sample use, programmatically import sys # create a Trace object, telling it what to ignore, and whether to # do tracing or line-counting or both. tracer = trace.Trace(ignoredirs=[sys.base_prefix, sys.base_exec_prefix,], trace=0, count=1) # run the new command using the given tracer tracer.run('main()') # make a report, placing output in /tmp r = tracer.results() r.write_results(show_missing=True, coverdir="/tmp") uTraceuCoverageResultsiN(uwarn(u monotonic(utimecCstjddS(N(usysusettraceuNone(((u*/opt/alt/python33/lib64/python3.3/trace.pyu _unsettraceHsu _unsettracecCstj|tj|dS(N(u threadingusettraceusys(ufunc((u*/opt/alt/python33/lib64/python3.3/trace.pyu _settraceKs u _settracecCstjdtjddS(N(usysusettraceuNoneu threading(((u*/opt/alt/python33/lib64/python3.3/trace.pyu _unsettraceOs cCs|jdtjddS(Nu Usage: %s [OPTIONS] [ARGS] Meta-options: --help Display this help then exit. --version Output version information then exit. Otherwise, exactly one of the following three options must be given: -t, --trace Print each line to sys.stdout before it is executed. -c, --count Count the number of times each line is executed and write the counts to .cover for each module executed, in the module's directory. See also `--coverdir', `--file', `--no-report' below. -l, --listfuncs Keep track of which functions are executed at least once and write the results to sys.stdout after the program exits. -T, --trackcalls Keep track of caller/called pairs and write the results to sys.stdout after the program exits. -r, --report Generate a report from a counts file; do not execute any code. `--file' must specify the results file to read, which must have been created in a previous run with `--count --file=FILE'. Modifiers: -f, --file= File to accumulate counts over several runs. -R, --no-report Do not generate the coverage report files. Useful if you want to accumulate over several runs. -C, --coverdir= Directory where the report files. The coverage report for . is written to file //.cover. -m, --missing Annotate executable lines that were not executed with '>>>>>> '. -s, --summary Write a brief summary on stdout for each file. (Can only be used with --count or --report.) -g, --timing Prefix each line with the time since the program started. Only used while tracing. Filters, may be repeated multiple times: --ignore-module= Ignore the given module(s) and its submodules (if it is a package). Accepts comma separated list of module names --ignore-dir= Ignore files in the given directory (multiple directories can be joined by os.pathsep). i(uwriteusysuargv(uoutfile((u*/opt/alt/python33/lib64/python3.3/trace.pyu_usageSs*u_usageu#pragma NO COVERu ^\s*(#.*)?$cBs2|EeZdZddddZddZdS(u_IgnorecCsT|stn t||_|s*gndd|D|_idd6|_dS(NcSs"g|]}tjj|qS((uosupathunormpath(u.0ud((u*/opt/alt/python33/lib64/python3.3/trace.pyu s u$_Ignore.__init__..iu(usetu_modsu_dirsu_ignore(uselfumodulesudirs((u*/opt/alt/python33/lib64/python3.3/trace.pyu__init__s u_Ignore.__init__cCs||jkr|j|S||jkr:d|j|(u startswithuendswith(uselfufilename((u*/opt/alt/python33/lib64/python3.3/trace.pyuis_ignored_filenamesu#CoverageResults.is_ignored_filenamec Cs|j}|j}|j}|j}|j}|j}x,|D]$}|j|d||||u %s.%s -> %s.%su.pycu.pyoNiu.coverurbidulines cov% module (path)u%5d %3d%% %s (%s)uwbu"Can't save counts files because %sufile(u.pycu.pyoi("u calledfuncsuprintusorteducallersucountsugetuitemsuis_ignored_filenameuendswithuNoneuosupathudirnameuabspathu_modnameuexistsumakedirsu _fullmodnameu_find_executable_linenosu linecacheugetlinesujoinuopenutokenizeudetect_encodingureadlineuwrite_results_fileuintuoutfileupickleudumpuIOErrorusysustderr(!uselfu show_missingusummaryucoverdirucallsufilenameu modulenameufuncnameulastfileu lastcfileupfileupmodupfuncucfileucmoducfuncuper_fileulinenou lines_hitusumsucountudirulnotabusourceu coverpathufpuencodingu_un_hitsun_linesupercentumuerr((u*/opt/alt/python33/lib64/python3.3/trace.pyu write_results s|      +    !       uCoverageResults.write_resultsc CsNyt|dd|}WnFtk ra}z&td||fdtjd SWYdd}~XnXd}d} xt|dD]\} } | |kr|jd|| | d7} |d7}n^tj| r|jd n?| |krt | kr|jd |d7}n |jd |j| j d q~W|j | |fS( u'Return a coverage results file in path.uwuencodingu2trace: Could not open %r for writing: %s- skippingufileiNiu%5d: u u>>>>>> i(ii( uopenuIOErroruprintusysustderru enumerateuwriteurx_blankumatchuPRAGMA_NOCOVERu expandtabsuclose( uselfupathulinesulnotabu lines_hituencodinguoutfileuerrun_linesun_hitsulinenouline((u*/opt/alt/python33/lib64/python3.3/trace.pyuwrite_results_filebs,       u"CoverageResults.write_results_fileNTF( u__name__u __module__u __qualname__uNoneu__init__uis_ignored_filenameuupdateuTrueuFalseu write_resultsuwrite_results_file(u __locals__((u*/opt/alt/python33/lib64/python3.3/trace.pyuCoverageResultss    UcCsCi}x6tj|D]%\}}||krd||s u1Trace.file_module_function_of..icSs%g|]}t|tr|qS((u isinstanceudict(u.0ud((u*/opt/alt/python33/lib64/python3.3/trace.pyu %s icSs%g|]}t|dr|qS(u __bases__(uhasattr(u.0uc((u*/opt/alt/python33/lib64/python3.3/trace.pyu (s u%s.%s( uf_codeu co_filenameu_modnameuNoneuco_nameu _caller_cacheugcu get_referrersulenu__name__( uselfuframeucodeufilenameu modulenameufuncnameuclsnameufuncsudictsuclasses((u*/opt/alt/python33/lib64/python3.3/trace.pyufile_module_function_ofs,        uTrace.file_module_function_ofcCsG|dkrC|j|}|j|j}d|j||f| nQ|t_|d}tjj |dtjd| ndS(LNiiutcrRf:d:msC:lTguhelpuversionutraceucountureportu no-reportusummaryufile=umissinguignore-module=u ignore-dir=u coverdir=u listfuncsu trackcallsutimingu%s: %s u%Try `%s --help' for more information u--helpu --versionu trace 2.0 u-Tu --trackcallsu-lu --listfuncsu-gu--timingu-tu--traceu-cu--countu-ru--reportu-Ru --no-reportu-fu--fileu-mu --missingu-Cu --coverdiru-su --summaryu--ignore-moduleu,u --ignore-diru$prefixulibupythoniu $exec_prefixuShould never get hereu8cannot specify both --listfuncs and (--trace or --count)uLmust specify one of --trace, --count, --report, --listfuncs, or --trackcallsu,cannot specify both --report and --no-reportu--report requires a --fileumissing name of file to runuinfileuoutfileucoverdiru countfuncsu countcallersu ignoremodsu ignoredirsuexecu__file__u__main__u__name__u __package__u __cached__uCannot run file %r because: %sFT(&ugetoptuNoneusysuargvuerrorustderruwriteuexituFalseu_usageustdoutuTrueusplituappendustripuosupathsepupathu expandvarsureplaceujoinu base_prefixuversionubase_exec_prefixunormpathuAssertionErroru _err_exitulenuCoverageResultsu write_resultsuTraceuopenucompileureadurunctxuIOErroru SystemExituresults(uargvugetoptuoptsu prog_argvumsgutraceucountureportu no_reportu counts_fileumissinguignore_modulesu ignore_dirsucoverdirusummaryu listfuncsu countcallersutiminguoptuvalumodusuresultsuprognameutufpucodeuglobsuerr((u*/opt/alt/python33/lib64/python3.3/trace.pyumains     !                     -  umaincCstdtdt|dS(Nu(The trace.usage() function is deprecatedi(u_warnuDeprecationWarningu_usage(uoutfile((u*/opt/alt/python33/lib64/python3.3/trace.pyuusage0s uusagecBs&|EeZdZddddZdS(uIgnorecCs'tdtdtj|||dS(Nu$The class trace.Ignore is deprecatedi(u_warnuDeprecationWarningu_Ignoreu__init__(uselfumodulesudirs((u*/opt/alt/python33/lib64/python3.3/trace.pyu__init__6s uIgnore.__init__N(u__name__u __module__u __qualname__uNoneu__init__(u __locals__((u*/opt/alt/python33/lib64/python3.3/trace.pyuIgnore5suIgnorecCstdtdt|S(Nu*The trace.modname() function is deprecatedi(u_warnuDeprecationWarningu_modname(upath((u*/opt/alt/python33/lib64/python3.3/trace.pyumodname;s umodnamecCstdtdt|S(Nu.The trace.fullmodname() function is deprecatedi(u_warnuDeprecationWarningu _fullmodname(upath((u*/opt/alt/python33/lib64/python3.3/trace.pyu fullmodname@s u fullmodnamecCstdtdt||S(Nu7The trace.find_lines_from_code() function is deprecatedi(u_warnuDeprecationWarningu_find_lines_from_code(ucodeustrs((u*/opt/alt/python33/lib64/python3.3/trace.pyufind_lines_from_codeEs ufind_lines_from_codecCstdtdt||S(Nu-The trace.find_lines() function is deprecatedi(u_warnuDeprecationWarningu _find_lines(ucodeustrs((u*/opt/alt/python33/lib64/python3.3/trace.pyu find_linesJs u find_linescCs tdtdt|ddS(Nu/The trace.find_strings() function is deprecatediuencoding(u_warnuDeprecationWarningu _find_stringsuNone(ufilenameuencoding((u*/opt/alt/python33/lib64/python3.3/trace.pyu find_stringsOs u find_stringscCstdtdt|S(Nu:The trace.find_executable_linenos() function is deprecatedi(u_warnuDeprecationWarningu_find_executable_linenos(ufilename((u*/opt/alt/python33/lib64/python3.3/trace.pyufind_executable_linenosTs ufind_executable_linenosu__main__(0u__doc__u__all__u linecacheuosureusysutokenutokenizeuinspectugcudisupickleuwarningsuwarnu_warnutimeu monotonicu_timeu ImportErroru threadingusettraceu _settraceu _unsettraceu_usageuPRAGMA_NOCOVERucompileurx_blanku_Ignoreu_modnameu _fullmodnameuCoverageResultsu_find_lines_from_codeu _find_linesuNoneu _find_stringsu_find_executable_linenosuTraceu _err_exitumainuusageuIgnoreumodnameu fullmodnameufind_lines_from_codeu find_linesu find_stringsufind_executable_linenosu__name__(((u*/opt/alt/python33/lib64/python3.3/trace.pyu1s^                 -2