示例#1
0
class GetCmdPerfFlameComponentTestCase(unittest.TestCase):
    def setUp(self):
        self.profiler = PerfProfiler('www.rmlink.cn')

    def test_flame_burner(self):

        flame_data = self.profiler.get_cmd_perf_flame()

        pprint(flame_data)
示例#2
0
def getPerfFlameData(server):

    profiler = PerfProfiler(server)
    data = profiler.get_cmd_perf_flame()

    if 'request_id' in request.args:
        data['response_id'] = request.args['request_id']

    return jsonify(data)