X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=testTextCollection.cpp;h=59b6b43c11f2d64ef305605e0ecdf67c2b3fb912;hb=54b24bcc08f601be0c264fefc65af50bfb3837e5;hp=39377c5c3f9cfca5a07dd8ac424b77cc13571be0;hpb=bc04ff21fdb5d5334bad2272e2c48180a716f2e3;p=SXSI%2FTextCollection.git diff --git a/testTextCollection.cpp b/testTextCollection.cpp index 39377c5..59b6b43 100644 --- a/testTextCollection.cpp +++ b/testTextCollection.cpp @@ -2,13 +2,13 @@ #include #include #include -#include "HeapProfiler.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) @@ -37,9 +37,9 @@ int main() 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"; - 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";