aboutsummaryrefslogtreecommitdiffstats
path: root/src/DabMod.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-06-17 11:19:29 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-06-17 11:19:29 +0200
commitbab9d654f028a214e6f3abe8ade1c1da002d25ff (patch)
tree12580eddcaf217a5a86bb5b1a5efd1443bdef153 /src/DabMod.cpp
parent9f09681adda2b76ab08c96548bac2384ed8eae4d (diff)
downloaddabmod-bab9d654f028a214e6f3abe8ade1c1da002d25ff.tar.gz
dabmod-bab9d654f028a214e6f3abe8ade1c1da002d25ff.tar.bz2
dabmod-bab9d654f028a214e6f3abe8ade1c1da002d25ff.zip
Add TRACE support for timing analysis
Diffstat (limited to 'src/DabMod.cpp')
-rw-r--r--src/DabMod.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/DabMod.cpp b/src/DabMod.cpp
index a60bdd6..e0e7f8e 100644
--- a/src/DabMod.cpp
+++ b/src/DabMod.cpp
@@ -394,6 +394,12 @@ int launch_modulator(int argc, char* argv[])
etiLog.register_backend(log_file);
}
+ auto trace_filename = pt.get<std::string>("log.trace", "");
+ if (not trace_filename.empty()) {
+ LogTracer* tracer = new LogTracer(trace_filename);
+ etiLog.register_backend(tracer);
+ }
+
// modulator parameters:
gainMode = (GainMode)pt.get("modulator.gainmode", 0);
@@ -776,6 +782,7 @@ int launch_modulator(int argc, char* argv[])
m.inputReader->PrintInfo();
run_modulator_state_t st = run_modulator(m);
+ etiLog.log(trace, "DABMOD,run_modulator() = %d", st);
switch (st) {
case run_modulator_state_t::failure: