(ModFunc mf)
| 266 | } |
| 267 | |
| 268 | public synchronized void startTrace(ModFunc mf) throws Exception { |
| 269 | assert mf.getFuncName() != null : "function name cannot be null"; |
| 270 | |
| 271 | sendRPC("erlyberly", "start_trace", toTraceTuple(mf)); |
| 272 | |
| 273 | OtpErlangObject result = receiveRPC(); |
| 274 | |
| 275 | if(isTupleTagged(atom("error"), result)) { |
| 276 | System.out.println(result); |
| 277 | |
| 278 | |
| 279 | // TODO notify caller of failure! |
| 280 | return; |
| 281 | } |
| 282 | } |
| 283 | |
| 284 | public synchronized void stopTrace(ModFunc mf) throws Exception { |
| 285 | assert mf.getFuncName() != null : "function name cannot be null"; |
no test coverage detected