ecos: compress traces

git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1950 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
hsc
2012-11-23 15:33:27 +00:00
parent ee24acd085
commit c65c4936ab
2 changed files with 4 additions and 2 deletions

View File

@ -8,6 +8,7 @@
#include "cpn/CampaignManager.hpp"
#include "util/ProtoStream.hpp"
#include "util/MemoryMap.hpp"
#include "util/gzstream/gzstream.h"
#include "../plugins/tracing/TracingPlugin.hpp"
@ -185,7 +186,7 @@ bool EcosKernelTestCampaign::run()
local_count_known = count_known, local_count_known_jobs = count_known_jobs;
// load trace
ifstream tracef(filename_trace(variant, benchmark).c_str());
igzstream tracef(filename_trace(variant, benchmark).c_str());
if (tracef.fail()) {
m_log << "couldn't open " << filename_trace(variant, benchmark) << endl;
return false;

View File

@ -18,6 +18,7 @@
#include "sal/Listener.hpp"
#include "util/ElfReader.hpp"
#include "util/WallclockTimer.hpp"
#include "util/gzstream/gzstream.h"
// You need to have the tracing plugin enabled for this
#include "../plugins/tracing/TracingPlugin.hpp"
@ -166,7 +167,7 @@ bool EcosKernelTestExperiment::performTrace(guest_address_t addr_entry, guest_ad
tp.restrictMemoryAddresses(&mm);
// record trace
ofstream of(EcosKernelTestCampaign::filename_trace().c_str());
ogzstream of(EcosKernelTestCampaign::filename_trace().c_str());
tp.setTraceFile(&of);
// this must be done *after* configuring the plugin:
simulator.addFlow(&tp);