2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
python,
|
|
|
|
fetchPypi,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
python.pkgs.buildPythonPackage rec {
|
2023-10-19 13:55:26 +00:00
|
|
|
pname = "memory-profiler";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "0.61.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
src = fetchPypi {
|
2023-10-19 13:55:26 +00:00
|
|
|
pname = "memory_profiler";
|
|
|
|
inherit version;
|
2023-08-22 20:05:09 +00:00
|
|
|
sha256 = "sha256-Tltz14ZKHRKS+3agPoKj5475NNBoKKaY2dradtogZ7A=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python.pkgs; [
|
|
|
|
psutil # needed to profile child processes
|
|
|
|
matplotlib # needed for plotting memory usage
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A module for monitoring memory usage of a process";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "mprof";
|
2020-04-24 23:36:52 +00:00
|
|
|
longDescription = ''
|
|
|
|
This is a python module for monitoring memory consumption of a process as
|
|
|
|
well as line-by-line analysis of memory consumption for python programs.
|
|
|
|
'';
|
|
|
|
homepage = "https://pypi.python.org/pypi/memory_profiler";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|