Comments (6)
Hello
Thanks for submitting! I think psutil is not able to handle CPU frequency on Apple M1. As I just get a brand new laptop, I'll check this intuition and strive to provide a fix quickly. :)
from pytest-monitor.
Thanks @js-dieu! Congrats on your new laptop. Hopefully it's not a complicated fix.
from pytest-monitor.
Seems not complex. However, psutil has released a version with support for M1 chipset.
Can you please give me the output of the following (to be run in your environment):
import memory_profiler as mp
import psutil as ps
print(ps.__version__)
print(mp.__version__)
It's strange that pip does not manage to give you the latest version of psutil .
from pytest-monitor.
Here's my output:
>>> import memory_profiler as mp
import psutil as ps
print(ps.__version__)
print(mp.__version__)
>>> import psutil as ps
>>>
>>> print(ps.__version__)
5.9.1
>>> print(mp.__version__)
0.60.0
from pytest-monitor.
Ok, that means that psutil support of M1 is still partial. I am afraid we have to wait for them to fix this issue.
from pytest-monitor.
Hello @justinxzhao
I think that the latest release (1.6.5) should fix your issue. It is a fallback though, thus imperfect, but enough for you to run with pytest-monitor
. Waiting for psutil
to fix it completely though.
Do not hesitate to reopen if encounter another psutil related issue with pytest-monitor-1.6.5
from pytest-monitor.
Related Issues (20)
- add support for unittests (via pytest) HOT 9
- Provide an option to force garbage collector to run between tests HOT 2
- discuss best memory measurement approach and possible leak detection
- Backend realization HOT 2
- Unable to send measures on monitor-server
- Write monitor-output of tests to console HOT 6
- Incorrect result HOT 6
- pytest.skip() in a fixture causes an AttributeError for monitor_results during teardown HOT 5
- creating/binding a socket in a fixture causes it to not close HOT 6
- unicode issue in determine_scm_revision with Perforce
- Crash on __init__ if psutil.cpu_freq() gives no results HOT 1
- NotImplementedError: can't find current frequency file HOT 4
- Support for newer python versions HOT 1
- Missing metrics for failed tests HOT 8
- Drop python 3.7/pytest 5.*
- Use black and flake8 with pre-commit hooks
- Add Bitbucket CI details to
- Add postgres DB handler
- --no-monitor breaks pytest.raises and django_assert_num_queries HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytest-monitor.