##// END OF EJS Templates
ENH: Add configuration for profiling completions....
ENH: Add configuration for profiling completions. Adds two new configurable attributes to IPCompleter to enable profiling of the completion subsystem. - IPCompleter.profile_completions, a boolean indicating whether we should profile completions. Default is False. - IPCompleter.profiler_output_dir, a string indicating the directory where profiling data should be written. Default is '.completion_profiles'.

File last commit:

r15516:43a46eb6
r25693:3792cd3d
Show More
test_decorators.py
9 lines | 170 B | text/x-python | PythonLexer
from IPython.utils import decorators
def test_flag_calls():
@decorators.flag_calls
def f():
pass
assert not f.called
f()
assert f.called