summaryrefslogtreecommitdiff
path: root/examples/mem.c
blob: 63fba3de859784c6a9ed4c05fd6054ea060f4284 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <glibtop.h>
#include <glibtop/mem.h>

#include <glib.h>
#include <unistd.h>

int main(int argc, char **argv)
{
	glibtop_mem buf;

	glibtop_init();

	g_print("%lx\n", glibtop_global_server->features);

	glibtop_get_mem(&buf);

	glibtop_close();

	return 0;
}