summaryrefslogtreecommitdiffstats
path: root/vstf/vstf/controller/sw_perf/model.py
diff options
context:
space:
mode:
authorJun Li <matthew.lijun@huawei.com>2016-01-19 06:49:41 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-01-19 06:49:41 +0000
commit830b8c8c9f158fad8f9b1fc0977ae6deee3e9bed (patch)
tree6b6403f87c494ce2592228560f4078c8d3763ba5 /vstf/vstf/controller/sw_perf/model.py
parent61b37f3955ba7abb168fc5bab53a336a20579286 (diff)
parent5b4f794932cb9b28ec679e6dd88e6febb2a5db7b (diff)
Merge " JIRA: BOTTLENECKS-29 add the performance test framework"
Diffstat (limited to 'vstf/vstf/controller/sw_perf/model.py')
-rwxr-xr-xvstf/vstf/controller/sw_perf/model.py19
1 files changed, 13 insertions, 6 deletions
diff --git a/vstf/vstf/controller/sw_perf/model.py b/vstf/vstf/controller/sw_perf/model.py
index 672daade..c49df041 100755
--- a/vstf/vstf/controller/sw_perf/model.py
+++ b/vstf/vstf/controller/sw_perf/model.py
@@ -1,8 +1,11 @@
-#!/usr/bin/python
-# -*- coding: utf8 -*-
-# author:
-# date:
-# see license for license details
+##############################################################################
+# Copyright (c) 2015 Huawei Technologies Co.,Ltd and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
import logging
@@ -161,7 +164,11 @@ class CpuWatcher(Fabricant):
def __init__(self, dst, conn):
super(CpuWatcher, self).__init__(dst, conn)
self._pid = None
- self._data = {}
+ self._data = {
+ "cpu_num": 0,
+ "idle": 0,
+ "cpu_mhz": 0
+ }
def start(self):
print "CpuWatcher.start"