main/bootchart2: upgrade to 0.14.9_git20220807
picked by pmbootstrap aportupgrade Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6601
This commit is contained in:
parent
5edf40fbe9
commit
6a62061056
3 changed files with 8 additions and 82 deletions
|
|
@ -1,41 +0,0 @@
|
|||
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