From 4642216f70dd98134a79f9299b7ca4bc876649c7 Mon Sep 17 00:00:00 2001
From: Vito Caputo <vcaputo@gnugeneration.com>
Date: Sun, 28 Aug 2016 00:36:53 -0700
Subject: *: refactor all the things

Long overdue house cleaning.

The addition of compositing/monitoring overlays in vwm3 pushed vwm well past
what is a reasonable size for a simple thousand line file.  This is a first
step towards restoring sanity in the code, but no behavioral differences are
intended, this is mostly just shuffling around and organizing code.

I expect some performance regressions initially, follow-on commits will make
more improvements to that end as the dust settles.
---
 src/libvmon/defs/proc_wants.def | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 src/libvmon/defs/proc_wants.def

(limited to 'src/libvmon/defs/proc_wants.def')

diff --git a/src/libvmon/defs/proc_wants.def b/src/libvmon/defs/proc_wants.def
new file mode 100644
index 0000000..7f02602
--- /dev/null
+++ b/src/libvmon/defs/proc_wants.def
@@ -0,0 +1,14 @@
+#include "_begin.def"
+
+/* the available per-process wants, the order here matters, put wants which affect the sampling heirarchy first */
+/* otherwise they will change the heirarchy after samples have been collected, leaving newly introduced nodes with uninitialized sample stores after return from vmon_sample() */
+
+/*	  sym,				name,				internal fulfilllment function */
+vmon_want(PROC_FOLLOW_CHILDREN,		proc_follow_children,		proc_follow_children)
+vmon_want(PROC_FOLLOW_THREADS,		proc_follow_threads,		proc_follow_threads)
+vmon_want(PROC_FILES,			proc_files,			proc_sample_files)
+vmon_want(PROC_STAT,			proc_stat,			proc_sample_stat)
+vmon_want(PROC_VM,			proc_vm,			proc_sample_vm)
+vmon_want(PROC_IO,			proc_io,			proc_sample_io)
+
+#include "_end.def"
-- 
cgit v1.2.3

