mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-09-19 09:11:03 +02:00
test: convert docs into type annotations in test_framework/test_node.py
This commit is contained in:
@@ -400,14 +400,14 @@ class TestNode():
|
|||||||
self._raise_assertion_error('Expected messages "{}" does not partially match log:\n\n{}\n\n'.format(str(expected_msgs), print_log))
|
self._raise_assertion_error('Expected messages "{}" does not partially match log:\n\n{}\n\n'.format(str(expected_msgs), print_log))
|
||||||
|
|
||||||
@contextlib.contextmanager
|
@contextlib.contextmanager
|
||||||
def profile_with_perf(self, profile_name):
|
def profile_with_perf(self, profile_name: str):
|
||||||
"""
|
"""
|
||||||
Context manager that allows easy profiling of node activity using `perf`.
|
Context manager that allows easy profiling of node activity using `perf`.
|
||||||
|
|
||||||
See `test/functional/README.md` for details on perf usage.
|
See `test/functional/README.md` for details on perf usage.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
profile_name (str): This string will be appended to the
|
profile_name: This string will be appended to the
|
||||||
profile data filename generated by perf.
|
profile data filename generated by perf.
|
||||||
"""
|
"""
|
||||||
subp = self._start_perf(profile_name)
|
subp = self._start_perf(profile_name)
|
||||||
|
Reference in New Issue
Block a user