File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 1212import math
1313import csv
1414import traceback
15+ import platform
1516from datetime import datetime
1617
1718# Cross-platform colored text
@@ -52,6 +53,10 @@ def __init__(self, benchmarker):
5253 except Exception :
5354 #Could not read local git repository, which is fine.
5455 self .git = None
56+ # OS information - only set once during initialization
57+ self .operatingSystem = dict ()
58+ self .operatingSystem ['name' ] = platform .system ()
59+ self .operatingSystem ['version' ] = platform .release ()
5560 self .startTime = int (round (time .time () * 1000 ))
5661 self .completionTime = None
5762 self .concurrencyLevels = self .config .concurrency_levels
@@ -320,6 +325,7 @@ def __to_jsonable(self):
320325 toRet ['name' ] = self .name
321326 toRet ['environmentDescription' ] = self .environmentDescription
322327 toRet ['git' ] = self .git
328+ toRet ['operatingSystem' ] = self .operatingSystem
323329 toRet ['startTime' ] = self .startTime
324330 toRet ['completionTime' ] = self .completionTime
325331 toRet ['concurrencyLevels' ] = self .concurrencyLevels
You can’t perform that action at this time.
0 commit comments