Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# @Author: xuezaigds@gmail.com
# @Last Modified time: 2016-06-13 20:54:09
import cProfile
from time_profile import *
import pstats
cProfile.run("timeit_profile()", "timeit")
p = pstats.Stats('timeit')
p.sort_stats('time')
p.print_stats(6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment