X-Git-Url: http://sraa.de/git/?a=blobdiff_plain;f=dol%2Fsrc%2Fdol%2Fvisitor%2Fyapi%2Flib%2Fmain.cpp;fp=dol%2Fsrc%2Fdol%2Fvisitor%2Fyapi%2Flib%2Fmain.cpp;h=2879eb3c1e0f7ead603f922d149eed66d1775081;hb=8c411cf24ed0eb889191aaeafd8fa1e69081df42;hp=0000000000000000000000000000000000000000;hpb=dea7a4fb1ed110d3ce6e6d9255103d724bd66c0e;p=jump.git diff --git a/dol/src/dol/visitor/yapi/lib/main.cpp b/dol/src/dol/visitor/yapi/lib/main.cpp new file mode 100644 index 0000000..2879eb3 --- /dev/null +++ b/dol/src/dol/visitor/yapi/lib/main.cpp @@ -0,0 +1,41 @@ +#include "yapi.h" +#include "application.h" +#include + +using namespace std; + +int main() +{ + // create yapi run-time environment + RTE rte; + + // redirect standard output + ofstream f("./app.out"); + rte.setOutStream(f); + + // redirect standard error + ofstream g("./app.err"); + rte.setErrorStream(g); + + // create toplevel process network + Application app(id("app")); + + // start the process network and + // wait for processes to finish + rte.start(app); + + // print workload + ofstream h("./appworkload.txt"); + printWorkload(app, h); + + // generate dotty file + ofstream i("./app.dot"); + printDotty(app, i); + + f.close(); + g.close(); + h.close(); + i.close(); + + return 0; +}