'Print profile information to sys.stdout.'

def print_stats(self):

    funcname = self.fn.__name__
    filename = self.fn.func_code.co_filename
    lineno = self.fn.func_code.co_firstlineno
    print
    print '***    PROFILER    RESULTS    ***'
    print ('%s    (%s:%s)' % (funcname, filename, lineno))
    print ('function    called    %d    times' % self.ncalls),
    if self.skipped:
        print ('(%d    calls    not    profiled)' % self.skipped)
    else:
        print
    print
    stats = self.stats
    if self.filename:
        stats.dump_stats(self.filename)
    if (not self.dirs):
        stats.strip_dirs()
    stats.sort_stats(*self.sort)
    stats.print_stats(self.entries)
