이 명령의 구문은 추적기 명령에 자세히 설명되어 있습니다.
스크립트에 다음 명령 유형을 사용할 수 있습니다.
| 명령 유형 | 명령 |
|---|---|
| 중단점 | break <object> <op> <breakPointType> <data> |
| 호출 | [오브젝트 이름]->CALL([operation call] [signature]) |
| 주석 | // the comment goes here |
| 디스플레이 |
|
| 이벤트 생성 | <instanceName>->GEN(<eventName>(<parameterName> [, <parameterName>]*)) <instanceName>->GEN(<eventName>()) <instanceName>->GEN(<eventName>) |
| 이동 |
|
| 도움말 |
|
| 입/출력 |
|
| 종료 | quit |
| 재개 |
|
| 초점 설정 |
|
| 표시 | show <object> <interest-list> |
| 일시중단 |
|
| 시간소인 | timestamp <option> |
| 추적 | trace <object> <interest-list> |
다음 스크립트 예제는 페이스메이커 데모의 챔버 장치 동작을 테스트합니다.
//******************************************************* // file: utChamber.txt // description: chamber unit test script //*******************************************************// run until we enter the sensing state break ut2Chamber->theChamber stateEntered sensing go break ut2Chamber->theChamber -stateEntered sensing // Trace ... and capture to file utChamber.log trace #CallStack method trace #CallStack +timeout output +test.log // give several heart beats ut2Chamber->theChamber->GEN(evHeartBeat) go idle ut2Chamber->theChamber->GEN(evHeartBeat) go idle ut2Chamber->theChamber->GEN(evHeartBeat) go idle // absence of a heartbeat should cause a pace go idle break ut2Chamber->theChamber stateEntered sensing go break ut2Chamber->theChamber -stateEntered sensing // regenerate heartbeats ut2Chamber->theChamber->GEN(evHeartBeat) go idle ut2Chamber->theChamber->GEN(evHeartBeat) go idle ut2Chamber->theChamber->GEN(evHeartBeat) go idle // stop logging to file output -test.log