MCPcopy Create free account
hub / github.com/andytill/erlyberly / startTrace

Method startTrace

src/main/java/erlyberly/node/NodeAPI.java:268–282  ·  view source on GitHub ↗
(ModFunc mf)

Source from the content-addressed store, hash-verified

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";

Callers 2

traceModFuncMethod · 0.80
reapplyTracesMethod · 0.80

Calls 6

sendRPCMethod · 0.95
toTraceTupleMethod · 0.95
receiveRPCMethod · 0.95
getFuncNameMethod · 0.80
isTupleTaggedMethod · 0.80
atomMethod · 0.80

Tested by

no test coverage detected