mirror of https://github.com/contiki-ng/mspsim
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:
parent
cee2b9dbd6
commit
61b8a71cdf
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -256,7 +256,7 @@ main(void)
|
|||
testBitFields();
|
||||
testFunctions();
|
||||
testModulo();
|
||||
|
||||
/* printf("PROFILE\n"); */
|
||||
printf("EXIT\n");
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue