aboutsummaryrefslogtreecommitdiffstats
path: root/pseudo_util.c
diff options
context:
space:
mode:
authorPeter Seebach <peter.seebach@windriver.com>2015-08-13 17:10:02 -0500
committerPeter Seebach <peter.seebach@windriver.com>2015-08-20 17:17:09 -0500
commit4377856c427d40d4d518263ff0b6effa00fd3636 (patch)
treed59095adf952060da6f6969fa792b3cf3f074c65 /pseudo_util.c
parentdc631e69f8d189332c86a7dcae5b9f0badd52fd0 (diff)
downloadpseudo-4377856c427d40d4d518263ff0b6effa00fd3636.tar.gz
pseudo-4377856c427d40d4d518263ff0b6effa00fd3636.tar.bz2
pseudo-4377856c427d40d4d518263ff0b6effa00fd3636.zip
Initial profiling implementation.
A partially-implemented profiler for client time, which basically just inserts (optional) gettimeofday calls in various places and stashes data in a flat file containing one data block per pid. Signed-off-by: Peter Seebach <peter.seebach@windriver.com>
Diffstat (limited to 'pseudo_util.c')
-rw-r--r--pseudo_util.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pseudo_util.c b/pseudo_util.c
index 7f21164..ccbda60 100644
--- a/pseudo_util.c
+++ b/pseudo_util.c
@@ -66,6 +66,9 @@ static struct pseudo_variables pseudo_env[] = {
{ "PSEUDO_DISABLED", 15, NULL },
{ "PSEUDO_UNLOAD", 13, NULL },
{ "PSEUDO_ALLOW_FSYNC", 18, NULL },
+#ifdef PSEUDO_PROFILING
+ { "PSEUDO_PROFILE_PATH", 19, NULL },
+#endif
{ NULL, 0, NULL } /* Magic terminator */
};