Commit graph

23 commits

Author SHA1 Message Date
Fabien Castan
b1c4c96d9b
Merge pull request #1995 from alicevision/fix/binCmdLine
[bin] Fix all the scripts that had errors
2023-05-10 13:32:47 +02:00
Candice Bentéjac
c8237bbb0f [core] Stats: Retrieve and set the GPU name if it is found
The GPU's name was never retrieved, meaning that whenever a GPU was
found, all its information was displayed, except for its name, although
it was expected on the QML side.

This commit fixes this issue.
2023-04-26 11:02:52 +02:00
Candice Bentéjac
c63dbc2588 [core] Correctly initialize statistics data structures when reading stats
When reading the `ComputerStatistics` and `ProcStatistics` from a file
(and thus from a dictionary), the `computer` and `process` objects need
to be correctly initialized as `ComputerStatistics` and `ProcStatistics`
objects. Otherwise, they cannot access their `fromDict` method and will
remain empty dictionaries.
2023-04-24 15:33:05 +02:00
Candice Bentéjac
8bef398bed Remove workarounds and backports for Python 2 support
In particular:
- In common/, remove the backport of weakref.WeakMethod
- In docs/ and ui/, use the standard FileNotFoundError class
- Use built-in open() instead of io.open(), and stop importing io
- In core/stats.py, use the standard implementation of xml.etree instead
of the C one
2022-12-05 17:16:21 +01:00
Fabien Castan
8cfc5cbb45 [core] fix ressources stats 2022-06-02 14:14:48 +02:00
Francesco Zoffoli
ec7c0f73e8
Removing io_counters from the ProcStatatistics
`io_counters` is not always available (e.g. under Ubunutu 20 run in WSL), resulting in an exception being throw.

See #1373 for a complete explanation of the issue.
2021-04-10 22:39:55 +01:00
Fabien Castan
12d80ac57b [core] stats: reduce stats refresh precision 2020-10-13 16:11:07 +02:00
Fabien Castan
cdee25e26e [core] stats: minor simplification
add timeout on nvidia-smi
add try/except
remove duplicated code
no error is no nvidia-smi available
2020-10-13 16:07:42 +02:00
Fabien Castan
88099dd28c [core] stats: avoid crash in psutil (windows only)
https://github.com/giampaolo/psutil/issues/1763
2020-10-13 16:04:04 +02:00
Fabien Castan
8e141d7e58 [core] stats: do not break on stats errors
Watching the subprocess for statistics may create errors on windows on specific cases, it should not break the UI.
2020-03-17 19:52:07 +01:00
Fabien Castan
6c7523243a [core] stats: no processing in ComputerStatistics constructor
ComputerStatistics is instanciated for each NodeChunk, so any
computation here takes time. Instead we initialize the values on the
first update().
2019-09-10 18:56:24 +02:00
Fabien Castan
8c62437a68 [core] stats: use cElementTree on python 2 2019-09-10 18:56:20 +02:00
Fabien Castan
4d7ea32721 [core] stats bugfix: do not rely the ordering of the json entries
* do not rely on the ordering of the json entries, as it can vary from
one version to another.
* ensure variables are always initialized (even in case of exception)
* add some debug logging on errors in nvidia-smi parsing
2019-09-10 12:19:40 +02:00
Lee Geertsen
73f667d226 Add new CPU and RAM stats with new psutil version 5.6.3 2019-07-26 11:32:33 +02:00
Lee Geertsen
edf5dc7570 Set update interval variable and add it to statistics file 2019-07-26 11:31:31 +02:00
Lee Geertsen
0a0d21d4a1 Add GPU stats 2019-07-26 11:30:27 +02:00
Yann Lanthony
a677f6b297 [core][win] remove non available stat "num_fds" 2018-03-21 17:24:19 +01:00
Yann Lanthony
d190012d1d [stats] remove signal handling + misc fixes
* signal can only be used in the main thread, leading to an error when StatisticThread is instantiated inside a QThread
* misc fixes on imports and variable names
2017-11-10 18:28:00 +01:00
Fabien Castan
1e4f8f8a61 Add chunk notion for parallelization and implement specific updateInternals in CameraInit node
* Add chunk notion for parallelization
* Allows Node desc to implement custom updateInternals
* CameraInit node implement a specific updateInternals to update the
input image list
* FeatureExtraction, FeatureMatching, DepthMap, DepthMapFilter:
implement parallelization
2017-11-07 15:47:14 +01:00
Fabien Castan
9d3f7252c1 [core] move process code into the node description
Now CommandLineNode contains the code to launch the command line as a
subprocess.
2017-10-31 21:28:44 +01:00
Yann Lanthony
74e4089c68 [stats] update stats one last time only if subprocess is still running 2017-10-23 14:42:39 +02:00
Yann Lanthony
23541db54d [core] stop StatisticsThread when node is processed 2017-10-13 17:13:31 +02:00
Yann Lanthony
e893a3dfc6 rename package 'processGraph' to 'core' 2017-10-09 12:16:20 +02:00
Renamed from meshroom/processGraph/stats.py (Browse further)