Required tools for playing around with memory:
hexdump
objdump
readelf
xxd
gcore
#!/usr/bin/env python | |
# encoding: utf-8 | |
from __future__ import print_function | |
''' | |
analyze /proc/<pid>/smaps | |
doc | |
http://liutaihua.github.io/2013/04/25/process-smaps-analysis.html |
#!/bin/env rdmd | |
module xorg_show_grabs; | |
import std.algorithm; | |
import std.conv; | |
import std.exception; | |
import std.getopt; | |
import std.stdio; | |
import std.string; |
/* | |
The MIT License (MIT) | |
Copyright (c) 2016 j-keck <[email protected]> | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this | |
software and associated documentation files (the "Software"), to deal in the Software | |
without restriction, including without limitation the rights to use, copy, modify, | |
merge, publish, distribute, sublicense, and/or sell copies of the Software, and to | |
permit persons to whom the Software is furnished to do so, subject to the following conditions: |