Closed czlee closed 8 years ago
Changing the scripts is no problem, but I'm uncomfortable threading so much logging-related code through all of the code that doesn't really need it (the optimizer, the sender-runner, etc.). Can you write a separate sender-logger
program that does its own thing off to the side (probably skipping SenderGang, and maybe skipping Network too)?
Also, as you know I think logging to huge protobufs is a bad idea! The protobuf library does not do well with gigantic protobufs. A text file delimited by newlines is probably easier (since you can parse it line-by-line).
datafile=
argument,rat-runner
will log a bunch of information about the network and Remy (signals, actions, throughput, delay, window size) as it is running, and produce a protobuf with this information.ConfigRange
now also takessimulation_ticks
andlog_interval_ticks
which control the maximum simulation running time, and how often logs are taken, respectively. Iflog_interval_ticks
is zero then it'll just log everything. These have default values in the protobufs, so existing config files should be backwards compatible.