Files
fs2open.github.com/code/tracing/Monitor.cpp
T
asarium 6922d3ca2c Integrate the existing monitor system into the new tracing system
This writes the monitor updates as counter events into the event trace
file.
2016-12-21 16:10:01 +01:00

15 lines
294 B
C++

#include "tracing/Monitor.h"
#include "tracing/tracing.h"
using namespace tracing;
namespace tracing {
MonitorBase::MonitorBase(const char* name) : _name(name), _tracing_cat(name, false) {
}
void MonitorBase::valueChanged(float newVal) {
tracing::counter::value(_tracing_cat, newVal);
}
}