diff options
author | Mark Beierl <mark.beierl@dell.com> | 2016-12-02 22:25:48 -0500 |
---|---|---|
committer | mbeierl <mark.beierl@dell.com> | 2016-12-05 13:11:08 -0500 |
commit | 9f5b776c1b5a54d2ca5942424111f3ff55d5737c (patch) | |
tree | 56bff326b62256d1c3108453dc3ef2d33dd7ea12 /rest_server.py | |
parent | f56d13f2aac136b3b8762e06ca15688dd88ff502 (diff) |
Steady state detection
Detection of steady state after 10+ samples of data
Change-Id: I29368b06188c6370d17b3d567fece6486d171235
JIRA: STORPERF-72 STORPERF-73
Signed-off-by: Mark Beierl <mark.beierl@dell.com>
Diffstat (limited to 'rest_server.py')
-rw-r--r-- | rest_server.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/rest_server.py b/rest_server.py index d852bbb..40b9b77 100644 --- a/rest_server.py +++ b/rest_server.py @@ -12,15 +12,15 @@ import json import logging import logging.config import os +from storperf.db.job_db import JobDB +from storperf.plot.barchart import Barchart +from storperf.storperf_master import StorPerfMaster +import sys from flask import abort, Flask, request, jsonify, send_from_directory from flask_restful import Resource, Api, fields from flask_restful_swagger import swagger -from storperf.db.job_db import JobDB -from storperf.plot.barchart import Barchart -from storperf.storperf_master import StorPerfMaster - app = Flask(__name__, static_url_path="") api = swagger.docs(Api(app), apiVersion='1.0') @@ -372,6 +372,8 @@ prior to running any further tests, ] ) def delete(self): + self.logger.info("Threads: %s" % sys._current_frames()) + print sys._current_frames() try: return jsonify({'Slaves': storperf.terminate_workloads()}) except Exception as e: |