fix upt-tool stats, add it to trace_build test
Stefan Schuermans

Stefan Schuermans commited on 2026-02-14 18:32:20
Showing 2 changed files, with 2 additions and 2 deletions.

... ...
@@ -40,8 +40,7 @@ def calculate_stats(upt_traces: list) -> dict:
40 40
         for process in processes.getAllProcesses().values():
41 41
 
42 42
             # Ignore processes for which we do not have full information
43
-            if process.getBeginTimestamp() is None or process.getEndTimestamp(
44
-            ) is None:
43
+            if process.begin_timestamp is None or process.end_timestamp is None:
45 44
                 continue
46 45
 
47 46
             # Update the values
... ...
@@ -26,3 +26,4 @@ grep '^ *s: "\(/\S*/\)\?proc_begin.c"$' out.dump
26 26
 grep '^ *s: "libuptpl.so"$' out.dump
27 27
 
28 28
 upt-tool trace.upt pstree
29
+upt-tool trace.upt stats
29 30