Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
37e94841
Kaydet (Commit)
37e94841
authored
Eyl 02, 2015
tarafından
Norbert Thiebaud
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
percheck: produce similar stats than off-tree callgrind
Change-Id: I7035ea6f2d9ffe92282533064d69b75e2c1989e1
üst
159792e0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
scperfobj.cxx
sc/qa/perf/scperfobj.cxx
+8
-8
CppunitTest.mk
solenv/gbuild/CppunitTest.mk
+1
-1
xreplaceable.cxx
test/source/util/xreplaceable.cxx
+1
-1
No files found.
sc/qa/perf/scperfobj.cxx
Dosyayı görüntüle @
37e94841
...
@@ -136,7 +136,7 @@ void ScPerfObj::testSheetFindAll()
...
@@ -136,7 +136,7 @@ void ScPerfObj::testSheetFindAll()
uno
::
Reference
<
container
::
XIndexAccess
>
xIndex
=
xSearchable
->
findAll
(
xSearchDescr
);
uno
::
Reference
<
container
::
XIndexAccess
>
xIndex
=
xSearchable
->
findAll
(
xSearchDescr
);
callgrindDump
(
"
testSheetFindAll-Search
value"
);
callgrindDump
(
"
sc:search_all_sheets_by_
value"
);
CPPUNIT_ASSERT
(
xIndex
.
is
());
CPPUNIT_ASSERT
(
xIndex
.
is
());
...
@@ -158,7 +158,7 @@ void ScPerfObj::testSheetFindAll()
...
@@ -158,7 +158,7 @@ void ScPerfObj::testSheetFindAll()
uno
::
Reference
<
container
::
XIndexAccess
>
xIndex2
=
xSearchableStyle
->
findAll
(
xSearchDescr
);
uno
::
Reference
<
container
::
XIndexAccess
>
xIndex2
=
xSearchableStyle
->
findAll
(
xSearchDescr
);
callgrindDump
(
"
testSheetFindAll-Search
style"
);
callgrindDump
(
"
sc:search_all_sheets_by_
style"
);
CPPUNIT_ASSERT
(
xIndex2
.
is
());
CPPUNIT_ASSERT
(
xIndex2
.
is
());
...
@@ -194,7 +194,7 @@ void ScPerfObj::testSheetNamedRanges()
...
@@ -194,7 +194,7 @@ void ScPerfObj::testSheetNamedRanges()
{
{
callgrindStart
();
callgrindStart
();
xNamedRanges
->
removeByName
(
maNameToRemove
);
xNamedRanges
->
removeByName
(
maNameToRemove
);
callgrindDump
(
"
Namedranges-removeByN
ame"
);
callgrindDump
(
"
sc:remove_named_range_by_n
ame"
);
}
}
// test addNewByName
// test addNewByName
...
@@ -205,13 +205,13 @@ void ScPerfObj::testSheetNamedRanges()
...
@@ -205,13 +205,13 @@ void ScPerfObj::testSheetNamedRanges()
OUString
aName1
(
"single_added"
);
OUString
aName1
(
"single_added"
);
callgrindStart
();
callgrindStart
();
xNamedRanges
->
addNewByName
(
aName1
,
aContent1
,
aBaseAddress
,
nType
);
xNamedRanges
->
addNewByName
(
aName1
,
aContent1
,
aBaseAddress
,
nType
);
callgrindDump
(
"
Namedranges-addNewByN
ame"
);
callgrindDump
(
"
sc:add_named_range_by_n
ame"
);
//test AddNewFromTitles with some 1000 new named ranges
//test AddNewFromTitles with some 1000 new named ranges
table
::
CellRangeAddress
aCellRangeAddress
=
table
::
CellRangeAddress
(
0
,
1
,
0
,
2
,
999
);
table
::
CellRangeAddress
aCellRangeAddress
=
table
::
CellRangeAddress
(
0
,
1
,
0
,
2
,
999
);
callgrindStart
();
callgrindStart
();
xNamedRanges
->
addNewFromTitles
(
aCellRangeAddress
,
sheet
::
Border_LEFT
);
xNamedRanges
->
addNewFromTitles
(
aCellRangeAddress
,
sheet
::
Border_LEFT
);
callgrindDump
(
"
Namedranges-addNewFromT
itles"
);
callgrindDump
(
"
sc:add_named_range_from_t
itles"
);
}
}
...
@@ -229,20 +229,20 @@ void ScPerfObj::testSheets()
...
@@ -229,20 +229,20 @@ void ScPerfObj::testSheets()
callgrindStart
();
callgrindStart
();
xSheets
->
insertNewByName
(
aSheetName
,
80
);
xSheets
->
insertNewByName
(
aSheetName
,
80
);
callgrindDump
(
"
Sheets-insertNewByN
ame"
);
callgrindDump
(
"
sc:insert_new_sheet_by_n
ame"
);
OUString
aSourceSheetName
=
"aSheet_2"
;
OUString
aSourceSheetName
=
"aSheet_2"
;
OUString
aTargetSheetName
=
"aCopiedSheet"
;
OUString
aTargetSheetName
=
"aCopiedSheet"
;
callgrindStart
();
callgrindStart
();
xSheets
->
copyByName
(
aSourceSheetName
,
aTargetSheetName
,
70
);
xSheets
->
copyByName
(
aSourceSheetName
,
aTargetSheetName
,
70
);
callgrindDump
(
"
Sheets-copyByN
ame"
);
callgrindDump
(
"
sc:copy_sheet_by_n
ame"
);
uno
::
Reference
<
sheet
::
XSpreadsheets
>
xSheetsNameContainer
(
xSheets
,
UNO_QUERY_THROW
);
uno
::
Reference
<
sheet
::
XSpreadsheets
>
xSheetsNameContainer
(
xSheets
,
UNO_QUERY_THROW
);
callgrindStart
();
callgrindStart
();
xSheetsNameContainer
->
removeByName
(
aSheetName
);
xSheetsNameContainer
->
removeByName
(
aSheetName
);
callgrindDump
(
"
Sheets-removeByN
ame"
);
callgrindDump
(
"
sc:remove_sheet_by_n
ame"
);
}
}
...
...
solenv/gbuild/CppunitTest.mk
Dosyayı görüntüle @
37e94841
...
@@ -36,7 +36,7 @@ endif
...
@@ -36,7 +36,7 @@ endif
ifneq (,$(filter perfcheck,$(MAKECMDGOALS)))
ifneq (,$(filter perfcheck,$(MAKECMDGOALS)))
$(if $(ENABLE_VALGRIND),,$(call gb_Output_error,Running performance tests with empty $$(ENABLE_VALGRIND) does not make sense))
$(if $(ENABLE_VALGRIND),,$(call gb_Output_error,Running performance tests with empty $$(ENABLE_VALGRIND) does not make sense))
gb_CppunitTest_VALGRINDTOOL := valgrind --tool=callgrind --dump-instr=yes --instr-atstart=no
gb_CppunitTest_VALGRINDTOOL := valgrind --tool=callgrind --dump-instr=yes --instr-atstart=no
--simulate-cache=yes --dump-instr=yes --collect-bus=yes --branch-sim=yes
endif
endif
# defined by platform
# defined by platform
...
...
test/source/util/xreplaceable.cxx
Dosyayı görüntüle @
37e94841
...
@@ -54,7 +54,7 @@ void XReplaceable::testReplaceAll()
...
@@ -54,7 +54,7 @@ void XReplaceable::testReplaceAll()
callgrindStart
();
callgrindStart
();
xReplaceable
->
replaceAll
(
uno
::
Reference
<
util
::
XSearchDescriptor
>
(
xReplaceDescr
,
UNO_QUERY_THROW
));
xReplaceable
->
replaceAll
(
uno
::
Reference
<
util
::
XSearchDescriptor
>
(
xReplaceDescr
,
UNO_QUERY_THROW
));
callgrindDump
(
"
replaceA
ll"
);
callgrindDump
(
"
test:replace_a
ll"
);
//check that now at least one element is found
//check that now at least one element is found
xElement
=
xReplaceable
->
findFirst
(
xSearchDescr
);
xElement
=
xReplaceable
->
findFirst
(
xSearchDescr
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment