Revert "main/bootchart2: upgrade to 0.14.9_git20220807"
This reverts commit 6a62061056.
see: https://gitlab.postmarketos.org/postmarketOS/build.postmarketos.org/-/issues/164
This commit is contained in:
parent
26f0531efb
commit
e48304b386
3 changed files with 82 additions and 8 deletions
41
main/bootchart2/20-python3.8.patch
Normal file
41
main/bootchart2/20-python3.8.patch
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
diff --git a/pybootchartgui.py b/pybootchartgui.py
|
||||
index 947ce10..55f56ca 100755
|
||||
--- a/pybootchartgui.py
|
||||
+++ b/pybootchartgui.py
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/python
|
||||
+#!/usr/bin/python3
|
||||
#
|
||||
# This file is part of pybootchartgui.
|
||||
|
||||
diff --git a/pybootchartgui/parsing.py b/pybootchartgui/parsing.py
|
||||
index 993d7bf..433eb8b 100644
|
||||
--- a/pybootchartgui/parsing.py
|
||||
+++ b/pybootchartgui/parsing.py
|
||||
@@ -23,7 +23,7 @@ import string
|
||||
import re
|
||||
import sys
|
||||
import tarfile
|
||||
-from time import clock
|
||||
+from time import perf_counter
|
||||
from collections import defaultdict
|
||||
from functools import reduce
|
||||
|
||||
@@ -658,7 +658,7 @@ def get_num_cpus(headers):
|
||||
|
||||
def _do_parse(writer, state, name, file):
|
||||
writer.status("parsing '%s'" % name)
|
||||
- t1 = clock()
|
||||
+ t1 = perf_counter()
|
||||
if name == "header":
|
||||
state.headers = _parse_headers(file)
|
||||
elif name == "proc_diskstats.log":
|
||||
@@ -680,7 +680,7 @@ def _do_parse(writer, state, name, file):
|
||||
state.ps_stats = _parse_proc_ps_log(writer, file)
|
||||
elif name == "kernel_pacct": # obsoleted by PROC_EVENTS
|
||||
state.parent_map = _parse_pacct(writer, file)
|
||||
- t2 = clock()
|
||||
+ t2 = perf_counter()
|
||||
writer.info(" %s seconds" % str(t2-t1))
|
||||
return state
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue