projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
delayline: use boost::shared_array
[ardour.git]
/
libs
/
ardour
/
ardour
/
cycle_timer.h
diff --git
a/libs/ardour/ardour/cycle_timer.h
b/libs/ardour/ardour/cycle_timer.h
index 839b54150c27bb4ddca9b951a7877f74f6bf65c0..54a2d1d8f2d27f47df119a55902e42828f721312 100644
(file)
--- a/
libs/ardour/ardour/cycle_timer.h
+++ b/
libs/ardour/ardour/cycle_timer.h
@@
-24,12
+24,13
@@
#include <iostream>
#include <cstdlib>
#include <iostream>
#include <cstdlib>
+#include "ardour/libardour_visibility.h"
#include "ardour/cycles.h"
#include "ardour/debug.h"
float get_mhz ();
#include "ardour/cycles.h"
#include "ardour/debug.h"
float get_mhz ();
-class CycleTimer {
+class
LIBARDOUR_API
CycleTimer {
private:
static float cycles_per_usec;
#ifndef NDEBUG
private:
static float cycles_per_usec;
#ifndef NDEBUG
@@
-41,7
+42,7
@@
class CycleTimer {
public:
CycleTimer(const std::string& name) {
#ifndef NDEBUG
public:
CycleTimer(const std::string& name) {
#ifndef NDEBUG
- if (
PBD::debug_bits & PBD::DEBUG::CycleTimers
) {
+ if (
DEBUG_ENABLED (PBD::DEBUG::CycleTimers)
) {
_name = name;
if (cycles_per_usec == 0) {
cycles_per_usec = get_mhz ();
_name = name;
if (cycles_per_usec == 0) {
cycles_per_usec = get_mhz ();
@@
-55,7
+56,7
@@
class CycleTimer {
~CycleTimer() {
#ifndef NDEBUG
~CycleTimer() {
#ifndef NDEBUG
- if (
PBD::debug_bits & PBD::DEBUG::CycleTimers
) {
+ if (
DEBUG_ENABLED (PBD::DEBUG::CycleTimers)
) {
_exit = get_cycles();
std::cerr << _name << ": " << (float) (_exit - _entry) / cycles_per_usec << " (" << _entry << ", " << _exit << ')' << std::endl;
}
_exit = get_cycles();
std::cerr << _name << ": " << (float) (_exit - _entry) / cycles_per_usec << " (" << _entry << ", " << _exit << ')' << std::endl;
}
@@
-63,13
+64,15
@@
class CycleTimer {
}
};
}
};
-class StoringTimer
+class
LIBARDOUR_API
StoringTimer
{
public:
StoringTimer (int);
void ref ();
void check (int);
{
public:
StoringTimer (int);
void ref ();
void check (int);
+#ifndef NDEBUG
void dump (std::string const &);
void dump (std::string const &);
+#endif
private:
cycles_t _current_ref;
private:
cycles_t _current_ref;