projects
/
SXSI
/
TextCollection.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RRR coding to BRW
[SXSI/TextCollection.git]
/
testTextCollection.cpp
diff --git
a/testTextCollection.cpp
b/testTextCollection.cpp
index
39377c5
..
59b6b43
100644
(file)
--- a/
testTextCollection.cpp
+++ b/
testTextCollection.cpp
@@
-2,13
+2,13
@@
#include <iostream>
#include <cstdlib>
#include <string>
#include <iostream>
#include <cstdlib>
#include <string>
-#include "HeapProfiler.h"
using std::cout;
using std::endl;
using std::cin;
using std::string;
#include "TextCollection.h"
using std::cout;
using std::endl;
using std::cin;
using std::string;
#include "TextCollection.h"
+#include "HeapProfiler.h"
using SXSI::TextCollection;
void printDocumentResult(TextCollection::document_result dr)
using SXSI::TextCollection;
void printDocumentResult(TextCollection::document_result dr)
@@
-37,9
+37,9
@@
int main()
string str;
uchar* data;
int i = 0 ,j = 0;
string str;
uchar* data;
int i = 0 ,j = 0;
- int heap_base = HeapProfiler::GetHeapConsumption
(5); // Avoid small samplerates ;)
+ int heap_base = HeapProfiler::GetHeapConsumption
();
std::cerr << "Initial heap usage : " << heap_base << "\n";
std::cerr << "Initial heap usage : " << heap_base << "\n";
- TextCollection *csa = TextCollection::InitTextCollection(
);
+ TextCollection *csa = TextCollection::InitTextCollection(
5); // Avoid small samplerates ;)
heap_base = HeapProfiler::GetHeapConsumption ();
std::cerr << "Heap usage after InitTextCollection : " << heap_base << "\n";
heap_base = HeapProfiler::GetHeapConsumption ();
std::cerr << "Heap usage after InitTextCollection : " << heap_base << "\n";