Ñò ý÷òGc @ sÁ d Z y d d k Z d d k l Z Wn e j o d \ Z Z n Xd d k Z d d k Z d d k Z d d k Z d d k l Z d d k l Z e i d ƒ Z d e f d „ ƒ YZ d S( s~ Use the profile plugin with --with-profile or NOSE_WITH_PROFILE to enable profiling using the hotshot profiler. Profiler output can be controlled with the --profile-sort and --profile-restrict, and the profiler output file may be changed with --profile-stats-file. See the hotshot documentation in the standard library documentation for more details on the various output options. iÿÿÿÿN( t stats( t Plugin( t tolists nose.pluginst Profilec B st e Z d Z d Z e Z e i d „ Z d „ Z e e ƒ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( sC Use this plugin to run tests using the hotshot profiler. c C s¶ | i ƒ p d St i | | | ƒ | i d d d d d d | i d d ƒ d d ƒ| i d d d d d d | i d ƒ d d ƒ| i d d d d d d | i d ƒ d d ƒd S( Ns --profile-sortt actiont storet destt profile_sortt defaultt NOSE_PROFILE_SORTt cumulativet helps" Set sort order for profiler outputs --profile-stats-filet profile_stats_filet NOSE_PROFILE_STATS_FILEs; Profiler stats file; default is a new temp file on each runs --profile-restrictt appendt profile_restrictt NOSE_PROFILE_RESTRICTs? Restrict profiler output. See help for pstats.Stats for details( t availableR t optionst add_optiont get( t selft parsert env( ( s5 /usr/lib/python2.6/site-packages/nose/plugins/prof.pyR s c C s t d j S( N( t hotshott None( t cls( ( s5 /usr/lib/python2.6/site-packages/nose/plugins/prof.pyR 0 s c C s5 | i ƒ p d S| i ƒ t i | i ƒ | _ d S( N( R t _create_pfileR R t pfilet prof( R ( ( s5 /usr/lib/python2.6/site-packages/nose/plugins/prof.pyt begin4 s c C s— | i ƒ p t | _ d St i | | | ƒ | | _ | i o | i | _ t | _ n d | _ t | _ d | _ | i | _ t | i ƒ | _ d S( N( R t Falset enabledR t configuret confR R t clean_stats_fileR t Truet filenoR t sortR R t restrict( R R R" ( ( s5 /usr/lib/python2.6/site-packages/nose/plugins/prof.pyR! : s c s? ˆ i ƒ p d St i d | ƒ ˆ i | ‡ f d † } | S( Ns preparing test %sc s ˆ i ƒ | i | | ƒ d S( N( R t runcall( t resultR t test( R ( s5 /usr/lib/python2.6/site-packages/nose/plugins/prof.pyt run_and_profileN s ( R t logt debugR ( R R* R+ ( ( R s5 /usr/lib/python2.6/site-packages/nose/plugins/prof.pyt prepareTestJ s c C sÞ t i d ƒ | i i ƒ t i | i ƒ } | i | i ƒ t t d ƒ } | o | i } | t _ n t i } | t _ z? | i o' t i d | i ƒ | i | i Œ n | i ƒ Wd | o | t _ n | t _ Xd S( Ns printing profiler reportt streams" setting profiler restriction to %s( R, R- R t closeR t loadR t sort_statsR&