#include "ardour/libardour_visibility.h"
-#include "i18n.h"
+#include "pbd/i18n.h"
using namespace std;
using namespace PBD;
if ((f = fopen("/proc/cpuinfo", "r")) == 0) {
fatal << _("CycleTimer::get_mhz(): can't open /proc/cpuinfo") << endmsg;
- /*NOTREACHED*/
+ abort(); /*NOTREACHED*/
return 0.0f;
}
if (fgets (buf, sizeof(buf), f) == 0) {
fatal << _("CycleTimer::get_mhz(): cannot locate cpu MHz in /proc/cpuinfo") << endmsg;
- /*NOTREACHED*/
+ abort(); /*NOTREACHED*/
return 0.0f;
}
}
fatal << _("cannot locate cpu MHz in /proc/cpuinfo") << endmsg;
- /*NOTREACHED*/
+ abort(); /*NOTREACHED*/
return 0.0f;
}
_max_points = N;
_points = 0;
}
-
+#ifndef NDEBUG
void
StoringTimer::dump (string const & file)
{
f << _point[i] << " " << _ref[i] << " " << _value[i] << "\n";
}
}
+#endif
void
StoringTimer::ref ()
} else if (_points > _max_points) {
return;
}
-
+
_point[_points] = p;
_value[_points] = get_cycles ();
_ref[_points] = _current_ref;
-
+
++_points;
}