Current File : //usr/lib/python2.7/site-packages/nose/plugins/prof.pyc |
�
�fPc @ s� d Z y d d l Z d d l m Z Wn e k
rE d \ Z Z n Xd d l Z d d l Z d d l Z d d l Z d d l m
Z
d d l m Z e j
d � Z d e
f d � � YZ d S(
s/ This plugin will run tests using the hotshot profiler, which is part
of the standard library. To turn it on, use the ``--with-profile`` option
or set the NOSE_WITH_PROFILE environment variable. Profiler output can be
controlled with the ``--profile-sort`` and ``--profile-restrict`` options,
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.
.. _hotshot documentation: http://docs.python.org/library/hotshot.html
i����N( t stats( t Plugin( t tolists nose.pluginst Profilec B sn e Z d Z d Z e Z 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� | j � s d St j | | | � | j d d d d d d | j d d � d
d d d
�| j d d d d d d
d d | j d � d d �| j d d d d d d
d d | j d � d d �d S( s&