我们从Python开源项目中,提取了以下8个代码示例,用于说明如何使用utils.profile()。
def profiler(app): """Outputs basic profiling information at the bottom of each response.""" from utils import profile def profile_internal(e, o): out, result = profile(app)(e, o) return list(out) + ['<pre>' + net.websafe(result) + '</pre>'] return profile_internal
def profiler(app): """Outputs basic profiling information at the bottom of each response.""" from utils import profile def profile_internal(e, o): out, result = profile(app)(e, o) return out + ['<pre>' + net.websafe(result) + '</pre>'] return profile_internal