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 --- test/source/util/xreplaceable.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') 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 v1.2.3