Changed the place where the .ptc file is writen out.
authorSayantan Chakravorty <sayantan_chak@yahoo.com>
Thu, 10 Jul 2003 15:35:12 +0000 (15:35 +0000)
committerSayantan Chakravorty <sayantan_chak@yahoo.com>
Thu, 10 Jul 2003 15:35:12 +0000 (15:35 +0000)
It used to be written out at the very beginning earlier.
Now it is written out at the  end to allow all languages to register

src/conv-perf/traceCore.C

index 6de2ec36c9725c577a4e05755971c758a1c5ec31..62f30954abcf52ffb187657444fe57ae24e7c2d9 100644 (file)
@@ -43,11 +43,12 @@ TraceCore::TraceCore(char** argv)
        REGISTER_CHARM
        REGISTER_MACHINE
        //REGISTER_AMPI
-       closePtc();
+       //closePtc();
 }
 
 TraceCore::~TraceCore()
 {
+       closePtc();
        if(traceLogger) delete traceLogger; 
 }
 
@@ -304,7 +305,6 @@ void TraceEntry::write(FILE* fp, int prevLID, int prevSeek, int nextLID, int nex
 TraceLogger::TraceLogger(char* program, int b):
        numLangs(1), numEntries(0), lastWriteFlag(0), prevLID(0), prevSeek(0)
 {
-  CmiPrintf("TraceLogger created\n");
   binary = b;