summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorYaroslav Brustinov <ybrustin@cisco.com>2017-01-14 09:04:43 +0200
committerYaroslav Brustinov <ybrustin@cisco.com>2017-01-14 09:04:43 +0200
commitd0c51b802ce43d0b0d0ebca87719258343028d2a (patch)
tree9348b6e0600be486bbaabe5d503211d8df371c39 /doc
parent1f20bc40d85e559edd4de8fd53f48697aa484ce5 (diff)
Regression: fix configure_basic_filtered_interfaces with vlans
Regression: speedup load of clean config dpdk_nic_bind: printing table with interfaces: take info from Linux and not TRex in case of Mellanox Doc performance: fix time format Change-Id: I3b022a2406efb058851033acfffc00766d13a1f1 Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/TRexDataAnalysisV2.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/doc/TRexDataAnalysisV2.py b/doc/TRexDataAnalysisV2.py
index f154efbe..e57b7017 100755
--- a/doc/TRexDataAnalysisV2.py
+++ b/doc/TRexDataAnalysisV2.py
@@ -128,13 +128,19 @@ class Setup:
self.all_tests_data_table = reduce(lambda x, y: pd.merge(x, y, how='outer'), all_tests_trend_data)
def plot_trend_graph_all_tests(self, save_path='', file_name='_trend_graph.png'):
- time_format = '%d-%m-%Y-%H:%M'
+ time_format1 = '%d-%m-%Y-%H:%M'
+ time_format2 = '%Y-%m-%d-%H:%M'
for test in self.tests:
test_data = test.results_df[test.results_df.columns[2]].tolist()
test_time_stamps = test.results_df[test.results_df.columns[3]].tolist()
test_time_stamps.append(self.end_date+'-23:59')
test_data.append(test_data[-1])
- float_test_time_stamps = [matdates.date2num(datetime.strptime(x, time_format)) for x in test_time_stamps]
+ float_test_time_stamps = []
+ for ts in test_time_stamps:
+ try:
+ float_test_time_stamps.append(matdates.date2num(datetime.strptime(ts, time_format1)))
+ except:
+ float_test_time_stamps.append(matdates.date2num(datetime.strptime(ts, time_format2)))
plt.plot_date(x=float_test_time_stamps, y=test_data, label=test.name, fmt='-', xdate=True)
plt.legend(fontsize='small', loc='best')
plt.ylabel('MPPS/Core (Norm)')