2016-01-27 04:42:12 +01:00
|
|
|
{ stdenv, fetchFromGitHub, ncurses }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "pagemon";
|
2019-10-08 01:36:56 +02:00
|
|
|
version = "0.01.17";
|
2016-01-27 04:42:12 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2019-10-08 01:36:56 +02:00
|
|
|
sha256 = "11r84nwjvnjyxc3jqhbvlgb89ajfj7v8212mz61dq5ilq5k7xa3d";
|
2016-01-27 04:42:12 +01:00
|
|
|
rev = "V${version}";
|
|
|
|
repo = "pagemon";
|
|
|
|
owner = "ColinIanKing";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"BINDIR=$(out)/bin"
|
|
|
|
"MANDIR=$(out)/share/man/man8"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
description = "Interactive memory/page monitor for Linux";
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|