Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/performance/api/graph.py')
-rw-r--r--tests/performance/api/graph.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/performance/api/graph.py b/tests/performance/api/graph.py
index b3c8329ff27..4ee5ae7cf0e 100644
--- a/tests/performance/api/graph.py
+++ b/tests/performance/api/graph.py
@@ -30,6 +30,7 @@ class TestGraph:
data = []
for device_name, device_entries in devices.items():
+
# Gather used categories.
categories = {}
for entry in device_entries:
@@ -57,6 +58,8 @@ class TestGraph:
self.json = json.dumps(data, indent=2)
def chart(self, device_name: str, chart_name: str, entries: List, chart_type: str, output: str) -> Dict:
+ entries = sorted(entries, key=lambda entry: entry.date)
+
# Gather used tests.
tests = {}
for entry in entries: