Skip to content

Instantly share code, notes, and snippets.

Zeljko Vrba zvrba

Block or report user

Report or block zvrba

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:2ea48c220b34c75a82ea
#include <string>
#include <iostream>
#include <sstream>
#include <vector>
#include <limits>
#include <functional>
#include <utility>
#include <stdexcept>
using Number = double;
@zvrba
zvrba / memshared.cpp
Created Apr 18, 2015
Compute the amount of memory saved through code sharing of SOs
View memshared.cpp
// See https://www.kernel.org/doc/Documentation/vm/pagemap.txt
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <dirent.h>
#include <stdint.h>
#include <errno.h>
#include <string.h>
You can’t perform that action at this time.