Did I find the right examples for you? yes no

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)

src/s/y/Sypy-HEAD/jit/tool/test/test_jitoutput.py   Sypy(Download)
from pypy.rlib.jit import JitDriver
from pypy.jit.backend.llgraph import runner
from pypy.jit.metainterp.jitprof import Profiler, JITPROF_LINES
from pypy.jit.tool.jitoutput import parse_prof
from pypy.tool.logparser import parse_log, extract_category
    err_sections = list(extract_category(log, 'jit-summary'))
    [err1] = err_sections    # there should be exactly one jit-summary
    assert err1.count("\n") == JITPROF_LINES
    info = parse_prof(err1)
    # assert did not crash

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/tool/test/test_jitoutput.py   plexnet(Download)
from pypy.rlib.jit import JitDriver, DEBUG_PROFILE
from pypy.jit.backend.llgraph import runner
from pypy.jit.metainterp.jitprof import Profiler, JITPROF_LINES
from pypy.jit.tool.jitoutput import parse_prof
 
    finally:
        out, err = cap.reset()
    err = "\n".join(err.splitlines()[-JITPROF_LINES:])
    print err
    assert err.count("\n") == JITPROF_LINES - 1