aboutsummaryrefslogtreecommitdiffstats
path: root/pseudo.h
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.h
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.h')
-rw-r--r--pseudo.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/pseudo.h b/pseudo.h
index 05813c1..81db201 100644
--- a/pseudo.h
+++ b/pseudo.h
@@ -152,4 +152,14 @@ round_up(size_t n, size_t block) {
return block * (((n + block / 4) / block) + 1);
}
+#ifdef PSEUDO_PROFILING
+typedef struct {
+ int processes;
+ long long total_ops;
+ long long messages;
+ struct timeval op_time;
+ struct timeval ipc_time;
+ struct timeval wrapper_time;
+} pseudo_profile_t;
+#endif
#include "pseudo_ports.h"