lp:~cjwatson/meliae/py3-perf-counter
- Get this branch:
- bzr branch lp:~cjwatson/meliae/py3-perf-counter
Branch merges
- John A Meinel: Approve
-
Diff: 60 lines (+14/-14)2 files modifiedmeliae/perf_counter.py (+8/-8)
meliae/tests/test_perf_counter.py (+6/-6)
Branch information
Recent revisions
- 221. By Colin Watson
-
Port performance counters to Python 3.
/proc/<pid>/status is opened in binary mode, so we need to parse it using
bytes-like regexes.TestPerformance
Counter. test_get_ memory needs similar minor adjustments to
use bytes where appropriate.There were various combinations of tabs and spaces which Python 3 now
complains about. - 220. By John A Meinel
-
Update _scanner for Python 3 types.
PyDict, PyUnicode, PyLong all are different in 3.*, and have even changed a bit
during the 3.x lifetime. But these all pass the new test suite, and avoid
allocating a PyLong for every object that we know about. - 219. By John A Meinel
-
Python 3 doesn't have the old FILE interface.
Now we just use raw write() to file descriptors. It may mean we aren't doing
buffered IO, which is a bit of a shame, but at least it works on both Python2
and Python3 and still allows us to take a memory dump with fewer allocations. - 215. By John A Meinel
-
Update tests to be clearer about bytes vs text.
This is to avoid confusion where Python2 str objects are bytes while Python3 str objects are Unicode.
- 213. By John A Meinel
-
Change version string.
Officially it should be '.dev0' not '.dev.0' according to the python versioning
documentation.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:meliae