Skip to content
Snippets Groups Projects
Commit d5734a75 authored by Richard Hellwig's avatar Richard Hellwig
Browse files

TracingTest adapted to ProtoStream

git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1306 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
parent d4510be2
No related branches found
No related tags found
No related merge requests found
......@@ -33,9 +33,8 @@ bool TracingTest::run()
cout << "[TracingTest] enabling tracing" << endl;
TracingPlugin tp;
tp.setOstream(&cout);
Trace trace;
tp.setTraceMessage(&trace);
std::ofstream of("trace.pb");
tp.setTraceFile(&of);
// this must be done *after* configuring the plugin:
simulator.addFlow(&tp);
......@@ -49,9 +48,9 @@ bool TracingTest::run()
cout << "INTERRUPT #" << ie.getTriggerNumber() << "\n";
}
cout << "[TracingTest] disabling tracing (trace size: "
<< std::dec << trace.ByteSize() << " bytes)\n";
cout << "[TracingTest] tracing finished. (trace.pb)";
simulator.removeFlow(&tp);
of.close();
/*
// serialize trace to file
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment