ó
ol?Qc           @   s%   d  d l  Z  d  d l Z d   Z d S(   i˙˙˙˙Nc         C   s
  d d l  m  } d | k rĘ | j d  d d  l } | j   } | j d i  t d |  d |  d |  j  t j d I|  j Id	 I| j   | IJt j d
 IJt	 j
 d |  j  t j d IJn< | j   } |  |   t j |  j Id	 I| j   | IJd  S(   Ni˙˙˙˙(   t   datetimes	   --profiles   func(*args)t   funct   argss
   %s.profilet   Profiledt   tooks   gprof2dot to output.svgsZ   /mit/xavid/bin/gprof2dot.py -f pstats %s.profile -n 1 --skew .05 | dot -Tsvg -o output.svgs   Done.(   R    t   removet   cProfilet   nowt   runctxt   dictt   __name__t   syst   stderrt   ost   system(   R   R   R    R   R   (    (    sW   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/bazcmd/command.pyt   call_with_args   s    ,	
(   R   R   R   (    (    (    sW   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/bazcmd/command.pyt   <module>   s   