

@mark.parametrize('line_by_line', [False, True])
def test_profile(chdir_tempdir, line_by_line):
    prof = _enable_profiler(line_by_line=line_by_line)
    _profile(prof, 'import time; time.sleep(.001)', {
        
    }, {
        
    })
    assert op.exists(op.join(chdir_tempdir, '.profile', 'stats.txt'))

dataset/ETHPy150Open kwikteam/phy/phy/utils/tests/test_testing.py test_profile/original