From e65790ddcf90ee243bf74f8f906c7b12a7fda901 Mon Sep 17 00:00:00 2001 From: Laurent Godard Date: Tue, 4 Nov 2014 12:36:46 +0100 Subject: perfcheck instrument existing test : replaceAll MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I7766aa6d69810124b27763912c3e7a8399637280 Reviewed-on: https://gerrit.libreoffice.org/12243 Reviewed-by: Matúš Kukan Tested-by: Matúš Kukan --- sc/Module_sc.mk | 4 ++++ test/source/util/xreplaceable.cxx | 4 ++++ 2 files changed, 8 insertions(+) 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 +#include + 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); -- cgit