diff options
author | drebs <drebs@leap.se> | 2017-04-26 18:01:46 +0200 |
---|---|---|
committer | drebs <drebs@leap.se> | 2017-04-27 10:02:21 +0200 |
commit | aa9a13549eb30efa1f0528257e40fd67ebdfbee9 (patch) | |
tree | 77a759abd242408a2f05643b5589e6fe4bf1244b /testing/tests/conftest.py | |
parent | c08083e9dfd38f93eb67d234e85b47efa211045c (diff) |
[test] add memory measurement
Diffstat (limited to 'testing/tests/conftest.py')
-rw-r--r-- | testing/tests/conftest.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/testing/tests/conftest.py b/testing/tests/conftest.py index bece7609..2459307a 100644 --- a/testing/tests/conftest.py +++ b/testing/tests/conftest.py @@ -235,12 +235,3 @@ if 'pytest_benchmark' in sys.modules: """ hostname = os.environ.get('HOST_HOSTNAME', socket.gethostname()) machine_info['host'] = hostname - - def pytest_benchmark_update_json(config, benchmarks, output_json): - json_benchmarks = output_json['benchmarks'] - for benchmark in benchmarks: - # find the json output that corresponds to this benchmark - name = benchmark['name'] - output = filter(lambda d: d['name'] == name, json_benchmarks).pop() - # update output stats with previously saved values - output['stats']['cpu_percent'] = benchmark.stats.cpu_percent |