99 ../ globals,
1010 cleanup,
1111 electron,
12- results
13-
14- # TODO : QA Note: move to separate file
15- proc startCore * (traceArg: string , callerPid: int , test: bool ) =
16- # start_core <trace-program-pattern> <caller-pid> [--test]
17- let recordCore = envLoadRecordCore ()
18- var trace: Trace = nil
19- try :
20- let traceId = traceArg.parseInt
21- trace = trace_index.find (traceId, test= test)
22- except ValueError :
23- trace = trace_index.findByProgramPattern (traceArg, test= test)
24- except CatchableError as e:
25- errorMessage fmt" start core loading trace error: { e.msg} "
26- quit (1 )
27-
28- if trace.isNil:
29- echo " error: start core: trace not found for " , traceArg
30- quit (1 )
31- # echo trace.repr
32- let process = startCoreProcess (traceId = trace.id, recordCore= recordCore, callerPid= callerPid, test= test)
33- let code = waitForExit (process)
34- discard code
35- stopCoreProcess (process, recordCore)
12+ results,
13+ backends
3614
3715proc runInitial * (conf: CodetracerConf ) =
3816 # TODO should this be here?
@@ -166,4 +144,4 @@ proc runInitial*(conf: CodetracerConf) =
166144 conf.traceMetadataProgramArg, conf.traceMetadataRecordPidArg,
167145 conf.traceMetadataRecent,
168146 conf.traceMetadataRecentLimit,
169- conf.traceMetadataTest)
147+ conf.traceMetadataTest)
0 commit comments