diff options
Diffstat (limited to 'TAO/performance-tests/Latency/st_server.cpp')
-rw-r--r-- | TAO/performance-tests/Latency/st_server.cpp | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/TAO/performance-tests/Latency/st_server.cpp b/TAO/performance-tests/Latency/st_server.cpp index dd3425aae53..c9165a8607e 100644 --- a/TAO/performance-tests/Latency/st_server.cpp +++ b/TAO/performance-tests/Latency/st_server.cpp @@ -8,6 +8,37 @@ ACE_RCSID(Latency, st_server, "$Id$") +//#define USING_QUANTIFY 1 + +#if defined (USING_QUANTIFY) + +#if defined (ACE_WIN32) + +#include "pure.h" + +#else /* !ACE_WIN32 */ + +#include "quantify.h" + +inline int QuantifyClearData () +{ + return quantify_clear_data (); +} + +inline int QuantifyStartRecordingData () +{ + return quantify_start_recording_data (); +} + +inline int QuantifyStopRecordingData () +{ + return quantify_stop_recording_data (); +} + +#endif /* ACE_WIN32 */ + +#endif /* USING_QUANTIFY */ + const char *ior_output_file = "test.ior"; int workload = 0; @@ -45,6 +76,13 @@ parse_args (int argc, char *argv[]) int main (int argc, char *argv[]) { + +#if defined (USING_QUANTIFY) + // Reset Quantify data recording; whatever happened in the past is + // not relevant to this test. + QuantifyClearData (); +#endif /* USING_QUANTIFY */ + int priority = (ACE_Sched_Params::priority_min (ACE_SCHED_FIFO) + ACE_Sched_Params::priority_max (ACE_SCHED_FIFO)) / 2; |