Skip to content
This repository
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 26 lines (20 sloc) 0.675 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
#include "settings.h"

#include "internal/cache_counter_impl.h"
#include "xscript/memory_statistic.h"

#ifdef HAVE_DMALLOC_H
#include <dmalloc.h>
#endif

namespace xscript
{

class CacheCounterFactoryImpl : public CacheCounterFactory {
public:
    virtual std::auto_ptr<CacheCounter> createCounter(const std::string& name, bool want_real);
};

std::auto_ptr<CacheCounter>
CacheCounterFactoryImpl::createCounter(const std::string &name, bool want_real) {
    (void)want_real;
    return std::auto_ptr<CacheCounter>(new CacheCounterImpl(name));
}

static ComponentRegisterer<CacheCounterFactory> reg_(new CacheCounterFactoryImpl());
static MemoryStatisticRegisterer reg2_;
}
Something went wrong with that request. Please try again.