added possibility to profile from unit test framework

git-svn-id: https://mspsim.svn.sourceforge.net/svnroot/mspsim/mspsim@17 23d1a52b-0c3c-0410-b72d-8f29ab48fe35
This commit is contained in:
joxe 2007-10-29 18:19:04 +00:00
parent cee2b9dbd6
commit 61b8a71cdf
2 changed files with 3 additions and 1 deletions

View File

@ -69,6 +69,8 @@ public class Test implements USARTListener {
System.exit(0);
} else if (line.startsWith("DEBUG")) {
cpu.setDebug(true);
} else if (line.startsWith("PROFILE")) {
cpu.printProfile();
}
line = "";
} else {

View File

@ -256,7 +256,7 @@ main(void)
testBitFields();
testFunctions();
testModulo();
/* printf("PROFILE\n"); */
printf("EXIT\n");
return 0;
}