summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Godard <lgodard.libre@laposte.net>2014-11-04 12:36:46 +0100
committerMatúš Kukan <matus.kukan@collabora.com>2014-11-12 08:59:03 +0000
commite65790ddcf90ee243bf74f8f906c7b12a7fda901 (patch)
treea921b85a26dc38ebdc273d63cd24dbef3fc3d3d8
parentc18a2a239ecb41cd6f8c07d086f15cde0cffdbe1 (diff)
perfcheck instrument existing test : replaceAll
Change-Id: I7766aa6d69810124b27763912c3e7a8399637280 Reviewed-on: https://gerrit.libreoffice.org/12243 Reviewed-by: Matúš Kukan <matus.kukan@collabora.com> Tested-by: Matúš Kukan <matus.kukan@collabora.com>
-rw-r--r--sc/Module_sc.mk4
-rw-r--r--test/source/util/xreplaceable.cxx4
2 files changed, 8 insertions, 0 deletions
diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 56f02da58681..3f573185d5bb 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -84,4 +84,8 @@ $(eval $(call gb_Module_add_subsequentcheck_targets,sc,\
CppunitTest_sc_modelobj \
))
+$(eval $(call gb_Module_add_perfcheck_targets,sc,\
+ CppunitTest_sc_tablesheetobj \
+))
+
# vim: set noet sw=4 ts=4:
diff --git a/test/source/util/xreplaceable.cxx b/test/source/util/xreplaceable.cxx
index 42a31102a649..598a7ddf46ec 100644
--- a/test/source/util/xreplaceable.cxx
+++ b/test/source/util/xreplaceable.cxx
@@ -16,6 +16,8 @@
#include <iostream>
+#include <test/callgrind.hxx>
+
using namespace css;
using namespace css::uno;
@@ -50,7 +52,9 @@ void XReplaceable::testReplaceAll()
xReplaceDescr->setSearchString(maSearchString);
xReplaceDescr->setReplaceString(maReplaceString);
+ callgrindStart();
xReplaceable->replaceAll(uno::Reference< util::XSearchDescriptor >(xReplaceDescr, UNO_QUERY_THROW));
+ callgrindDump("replaceAll");
//check that now at least one element is found
xElement = xReplaceable->findFirst(xSearchDescr);