Getting ready to shift to dlmalloc

This commit is contained in:
2022-02-23 17:29:49 -05:00
parent 6a9bf4ca42
commit f2ab8d9e34
7 changed files with 6424 additions and 20 deletions

View File

@@ -1,6 +1,7 @@
#include "drivertests.hpp"
#include "drivenengine.hpp"
#include "world.hpp"
#include "eng-malloc.hpp"
#include <iomanip>
static void write_closed_message(Channel *ch, StreamBuffer *out) {
@@ -92,7 +93,7 @@ public:
virtual void event_update() {
double clock = get_clock();
if (clock > last_clock_ + 0.5) {
int ms = util::hash_of_mallocs();
int ms = dlmalloc_hash();
stdostream() << std::fixed << std::setprecision(2) << clock << " " << std::hex << ms << " ";
count_++;
last_clock_ = clock;