[Libreoffice-commits] core.git: sc/Module_sc.mk test/source
Laurent Godard
lgodard.libre at laposte.net
Wed Nov 12 00:59:32 PST 2014
sc/Module_sc.mk | 4 ++++
test/source/util/xreplaceable.cxx | 4 ++++
2 files changed, 8 insertions(+)
New commits:
commit e65790ddcf90ee243bf74f8f906c7b12a7fda901
Author: Laurent Godard <lgodard.libre at laposte.net>
Date: Tue Nov 4 12:36:46 2014 +0100
perfcheck instrument existing test : replaceAll
Change-Id: I7766aa6d69810124b27763912c3e7a8399637280
Reviewed-on: https://gerrit.libreoffice.org/12243
Reviewed-by: Matúš Kukan <matus.kukan at collabora.com>
Tested-by: Matúš Kukan <matus.kukan at collabora.com>
diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 56f02da..3f57318 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 42a3110..598a7dd 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);
More information about the Libreoffice-commits
mailing list