�
�fc @ sz d Z d d l Z d d l Z d d l Z d d l Z d d l Z d Z d Z d � Z d � Z e
d k rv e � n d S( s+ Transform gprof(1) output into useful HTML.i����NsF <html>
<head>
<title>gprof output (%s)</title>
</head>
<body>
<pre>
s </pre>
</body>
</html>
c c s# x | D] } t j | � Vq Wd S( N( t cgit escape( t inputt line( ( s0 /usr/lib64/python2.7/Tools/scripts/gprof2html.pyt add_escapes s
c C s� d } t j d r# t j d } n | d } t t | � � } t | d � } | j t | � x. | D]&