2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, ncurses }:
|
2016-01-27 03:42:12 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "pagemon";
|
2020-02-26 18:54:26 +00:00
|
|
|
version = "0.01.18";
|
2016-01-27 03:42:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-02-26 18:54:26 +00:00
|
|
|
sha256 = "1aq1mq3k8n70h81s64w2zg4kksw1y05326bn4y8p94lpaypvxqfd";
|
2016-01-27 03:42:12 +00:00
|
|
|
rev = "V${version}";
|
|
|
|
repo = "pagemon";
|
|
|
|
owner = "ColinIanKing";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"BINDIR=$(out)/bin"
|
|
|
|
"MANDIR=$(out)/share/man/man8"
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-01-27 03:42:12 +00:00
|
|
|
inherit (src.meta) homepage;
|
|
|
|
description = "Interactive memory/page monitor for Linux";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "pagemon";
|
2016-01-27 03:42:12 +00:00
|
|
|
longDescription = ''
|
|
|
|
pagemon is an ncurses based interactive memory/page monitoring tool
|
|
|
|
allowing one to browse the memory map of an active running process
|
|
|
|
on Linux.
|
|
|
|
pagemon reads the PTEs of a given process and display the soft/dirty
|
|
|
|
activity in real time. The tool identifies the type of memory mapping
|
|
|
|
a page belongs to, so one can easily scan through memory looking at
|
|
|
|
pages of memory belonging data, code, heap, stack, anonymous mappings
|
|
|
|
or even swapped-out pages.
|
|
|
|
'';
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|