added pop-to-push latency measurement
DEFINE_LATENCY(pop_latency);
DEFINE_LATENCY(push_latency);
-
+DEFINE_LATENCY(pop_to_push_latency);
namespace Zeus {
@@ -267,6 +267,7 @@ public:
// if push returns something else, then sga has been
// successfully pushed
Latency_End(&push_latency);
+ Latency_End(&pop_to_push_latency);
return 0;
}
};
@@ -314,6 +315,7 @@ public:
};
ssize_t peek(int qd, struct Zeus::sgarray &sga) {
+ Latency_Start(&pop_to_push_latency);
Latency_Start(&pop_latency);
if (!HasQueue(qd))
