nixpkgs-suyu/pkgs/os-specific/linux/pagemon/default.nix
Tobias Geerinckx-Rice d28a06553e pagemon: 1.01.06 -> 1.01.07
Changes:
  * Mix checksum up a bit more and return OK if nothing has changed
  * Optimize page reading, reduced by ~2% CPU
  * Add perf page statistics 'p' option
  * Add OOM score to VM stats
  * Optimize read_maps: don't re-scan page mapping if nothing changed
  * Reduce amount of seeks and reads on pagemap data

More: https://github.com/ColinIanKing/pagemon/blob/master/debian/changelog
2016-01-31 02:32:11 +01:00

38 lines
1.2 KiB
Nix

{ stdenv, fetchFromGitHub, ncurses }:
stdenv.mkDerivation rec {
name = "pagemon-${version}";
version = "0.01.07";
src = fetchFromGitHub {
sha256 = "041jqk11sq1qn3avsx4jbfqzvg6rfa5kmgn16q8jnwm5fqfaj037";
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;
maintainers = with maintainers; [ nckx ];
};
}