From d692e4398b8e742b765dc332eefc3020ae2de191 Mon Sep 17 00:00:00 2001
From: Ludovic Poitou <ludovic.poitou@forgerock.com>
Date: Thu, 04 Nov 2010 19:13:30 +0000
Subject: [PATCH] Add -S (--scriptFriendly) option to output all performance test results in CSV format so that they can be easily imported in tools such as spreadsheets. The CSV format includes an additional column (the first column) which is the time in seconds since the start of the test run.
---
sdk/src/com/sun/opends/sdk/tools/SearchRate.java | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/sdk/src/com/sun/opends/sdk/tools/SearchRate.java b/sdk/src/com/sun/opends/sdk/tools/SearchRate.java
index 183a7bc..0cf7174 100644
--- a/sdk/src/com/sun/opends/sdk/tools/SearchRate.java
+++ b/sdk/src/com/sun/opends/sdk/tools/SearchRate.java
@@ -261,6 +261,8 @@
private BooleanArgument verbose;
+ private BooleanArgument scriptFriendly;
+
private final AtomicInteger entryRecentCount = new AtomicInteger();
@@ -340,7 +342,7 @@
@Override
public boolean isScriptFriendly()
{
- return false;
+ return scriptFriendly.isPresent();
}
@@ -434,6 +436,11 @@
INFO_DESCRIPTION_VERBOSE.get());
verbose.setPropertyName("verbose");
argParser.addArgument(verbose);
+
+ scriptFriendly = new BooleanArgument("scriptFriendly", 'S',
+ "scriptFriendly", INFO_DESCRIPTION_SCRIPT_FRIENDLY.get());
+ scriptFriendly.setPropertyName("scriptFriendly");
+ argParser.addArgument(scriptFriendly);
}
catch (final ArgumentException ae)
{
--
Gitblit v1.10.0